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 = {
|
this.state = {
|
||||||
forgotPopup: false,
|
forgotPopup: false,
|
||||||
sendComPopup: false,
|
sendComPopup: false,
|
||||||
email: '',
|
email: 'overflow@loafle.com',
|
||||||
pass: '',
|
pass: 'qwer5795',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,11 +50,11 @@ export class SignIn extends React.Component<Props, State> {
|
||||||
public render(): JSX.Element {
|
public render(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Form>
|
<Form>
|
||||||
<Form.Input fluid placeholder='Email' onChange={
|
<Form.Input fluid placeholder='Email' defaultValue={this.state.email} onChange={
|
||||||
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
this.setState({ email: data.value });
|
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) => {
|
(event: React.SyntheticEvent<HTMLInputElement>, data: InputOnChangeData) => {
|
||||||
this.setState({ pass: data.value });
|
this.setState({ pass: data.value });
|
||||||
}} />
|
}} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user