File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,7 @@ const Login: React.FC<LoginProps> = ({ onSwitchView }) => {
35
35
setSnackbarOpen ( true ) ;
36
36
} ;
37
37
38
- const handleSnackbarClose = (
39
- event ?: React . SyntheticEvent | Event ,
40
- reason ?: string ,
41
- ) => {
38
+ const handleSnackbarClose = ( reason ?: string ) => {
42
39
if ( reason === 'clickaway' ) {
43
40
return ;
44
41
}
Original file line number Diff line number Diff line change 1
- import React , { useState } from 'react' ;
1
+ import { useState } from 'react' ;
2
2
import Login from '../../components/login/loginForm' ;
3
- import SignUp from '../../components/login/signUp'
3
+ import SignUp from '../../components/login/signUp' ;
4
4
import AuthDetails from '../../components/login/AuthDetails' ;
5
5
6
-
7
-
8
6
const LoginPage = ( ) => {
9
7
const [ showLogin , setShowLogin ] = useState ( true ) ;
10
8
11
9
return (
12
10
< div >
13
- { showLogin ?
14
- < Login onSwitchView = { ( ) => setShowLogin ( false ) } /> :
15
- < SignUp onSwitchView = { ( ) => setShowLogin ( true ) } />
16
- }
17
- < AuthDetails />
18
- </ div >
19
- ) ;
11
+ { showLogin ? (
12
+ < Login onSwitchView = { ( ) => setShowLogin ( false ) } />
13
+ ) : (
14
+ < SignUp onSwitchView = { ( ) => setShowLogin ( true ) } />
15
+ ) }
16
+ < AuthDetails />
17
+ </ div >
18
+ ) ;
20
19
} ;
21
20
22
21
export default LoginPage ;
You can’t perform that action at this time.
0 commit comments