@@ -2,11 +2,8 @@ import React from 'react';
22import { useSelector } from 'react-redux' ;
33import { useDispatch } from 'react-redux' ;
44import PersonIcon from '@material-ui/icons/Person' ;
5-
65import {
76 Typography ,
8- Dialog ,
9- DialogContent ,
107 Button ,
118 Box ,
129 Avatar ,
@@ -16,8 +13,6 @@ import {
1613 CircularProgress ,
1714 makeStyles
1815} from '@material-ui/core' ;
19- import authService from 'src/services/authService' ;
20- import StyledFirebaseAuth from 'react-firebaseui/StyledFirebaseAuth' ;
2116import { login , dismissLogin , logout } from 'src/actions/accountActions' ;
2217
2318const useStyles = makeStyles ( theme => ( {
@@ -28,7 +23,6 @@ const useStyles = makeStyles(theme => ({
2823
2924function Account ( ) {
3025 const user = useSelector ( state => state . account . user ) ;
31- const loginFlag = useSelector ( state => state . account . login ) ;
3226 const [ anchorEl , setAnchorEl ] = React . useState ( null ) ;
3327 const dispatch = useDispatch ( ) ;
3428 const classes = useStyles ( ) ;
@@ -39,10 +33,6 @@ function Account() {
3933 dispatch ( dismissLogin ( ) ) ;
4034 } ;
4135
42- const handleClose = ( ) => {
43- dispatch ( dismissLogin ( ) ) ;
44- } ;
45-
4636 const handleLoginOpen = ( ) => {
4737 dispatch ( login ( ) ) ;
4838 } ;
@@ -143,53 +133,6 @@ function Account() {
143133 ) }
144134 </ Button >
145135 ) }
146-
147- < Dialog
148- open = { ! user && ! ! loginFlag }
149- onClose = { handleClose }
150- aria-labelledby = "form-dialog-title"
151- >
152- < DialogContent
153- style = { {
154- background : '#E2E9FF'
155- } }
156- >
157- < Box
158- display = "flex"
159- flexDirection = "column"
160- alignItems = "center"
161- justifyContent = "center"
162- mt = { 2 }
163- mb = { 2 }
164- >
165- < Typography
166- variant = "h3"
167- style = { {
168- marginBottom : '8px'
169- } }
170- >
171- Login / Sign Up
172- </ Typography >
173-
174- < Typography variant = "body2" > Explore learning with</ Typography >
175-
176- < Typography
177- variant = "body2"
178- style = { {
179- marginBottom : '12px'
180- } }
181- >
182- Open Source
183- </ Typography >
184-
185- < StyledFirebaseAuth
186- uiConfig = { authService . uiConfig }
187- firebaseAuth = { authService . firebase . auth ( ) }
188- />
189- </ Box >
190- </ DialogContent >
191- </ Dialog >
192-
193136 < Menu
194137 id = "menu-appbar"
195138 anchorEl = { anchorEl }
0 commit comments