import React from "react"; import * as Act from "./interface/Actions"; import usrsvg from "./images/loginuser.svg"; import pswsvg from "./images/loginpas.svg"; export default class SignIn extends React.Component { constructor() { super(); this.state = { u: '', p: '', p1: '', p2: '' }; } handleKeyPress(e) { if (e.key === 'Enter') { this.handleLogin(); } } handleLogin() { Act.apiCall('login', 'ACCTKN', { a: this.props.a, usr: this.state.u, psw: this.state.p, p1: this.state.p1, p2: this.state.p2 }); } render() { return (