diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-16 20:21:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 20:21:35 +0300 |
commit | 0e7c2d476225b3e381a86710a3635ab707387499 (patch) | |
tree | 27a9134031b4c90a9c887fbf9d8d2fa0e80a4109 /src/pages/AuthPage/SignInForm.tsx | |
parent | b860685d212200b5a46b7fea066306b851bf6e26 (diff) | |
parent | 5ec0669e6160f025017684a7d48f1d07a1768785 (diff) | |
download | which-ui-0e7c2d476225b3e381a86710a3635ab707387499.tar.gz |
Merge pull request #38 from ilyayudovin/registration
Registration form
Diffstat (limited to 'src/pages/AuthPage/SignInForm.tsx')
-rw-r--r-- | src/pages/AuthPage/SignInForm.tsx | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/pages/AuthPage/SignInForm.tsx b/src/pages/AuthPage/SignInForm.tsx index 1d4ce0e..c521abf 100644 --- a/src/pages/AuthPage/SignInForm.tsx +++ b/src/pages/AuthPage/SignInForm.tsx @@ -11,12 +11,16 @@ const useStyles = makeStyles(theme => ({ root: { '& > *': { margin: theme.spacing(1), - width: '25ch' + width: theme.spacing(35) }, display: 'flex', flexDirection: 'column', alignItems: 'center', textAlign: 'center' + }, + formHeader: { + textAlign: 'center', + fontSize: 25 } })); @@ -37,22 +41,24 @@ const SignInForm: React.FC<PropTypes> = ({ logIn }) => { }; return ( - <form className={classes.root} noValidate autoComplete="off"> - <h1>Sign In</h1> - <TextField - inputRef={nameRef} - error={error} - label="Login" - /> - <TextField - inputRef={passwordRef} - error={error} - helperText={error && 'Invalid credentials'} - label="Password" - type="password" - /> - <Button variant="contained" onClick={onClick}>submit</Button> - </form> + <> + <div className={classes.formHeader}>Sign In</div> + <form className={classes.root} noValidate autoComplete="off"> + <TextField + inputRef={nameRef} + error={error} + label="Login" + /> + <TextField + inputRef={passwordRef} + error={error} + helperText={error && 'Invalid credentials'} + label="Password" + type="password" + /> + <Button variant="contained" onClick={onClick}>submit</Button> + </form> + </> ); }; |