signin default value
This commit is contained in:
parent
508cd6f5bc
commit
a3d7e4ad26
|
@ -40,8 +40,8 @@ export class SignIn extends React.Component<Props, State> {
|
|||
this.state = {
|
||||
forgotPopup: false,
|
||||
sendComPopup: false,
|
||||
email: '',
|
||||
pass: '',
|
||||
email: 'overflow@loafle.com',
|
||||
pass: 'qwer5795',
|
||||
};
|
||||
|
||||
|
||||
|
@ -50,11 +50,11 @@ export class SignIn extends React.Component<Props, State> {
|
|||
public render(): JSX.Element {
|
||||
return (
|
||||
<Form>
|
||||
<Form.Input fluid placeholder='Email' onChange={
|
||||
<Form.Input fluid placeholder='Email' defaultValue={this.state.email} onChange={
|
||||
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||
this.setState({ email: data.value });
|
||||
}} />
|
||||
<Form.Input fluid placeholder='Password' type='password' onChange={
|
||||
<Form.Input fluid placeholder='Password' defaultValue={this.state.pass} type='password' onChange={
|
||||
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||
this.setState({ pass: data.value });
|
||||
}} />
|
||||
|
|
Loading…
Reference in New Issue
Block a user