@@ -49,21 +49,17 @@ function Copyright() {
4949
5050const useStyles = makeStyles ( ( theme ) => ( {
5151 paper : {
52- // marginTop: theme.spacing(8),
5352 display : 'flex' ,
5453 flexDirection : 'column' ,
5554 alignItems : 'center'
5655 } ,
5756 avatar : {
58- // margin: theme.spacing(1),
5957 backgroundColor : '#3EC1AC'
6058 } ,
6159 form : {
6260 width : '100%' // Fix IE 11 issue.
63- // marginTop: theme.spacing(1)
6461 } ,
6562 submit : {
66- // margin: theme.spacing(1, 0, 1),
6763 cursor : 'pointer'
6864 } ,
6965 root : {
@@ -183,25 +179,26 @@ const SignIn: React.FC<LoginInt & RouteComponentProps> = (props) => {
183179 // 8080 for container 5656 for dev
184180 window . location . assign ( `${ API_BASE_URL } /auth/github` ) ;
185181 } ;
186- const responseFacebook = ( response ) => {
187- if ( response . accessToken ) {
188- newUserIsCreated ( response . email , response . email , randomPassword ( ) ) . then (
189- ( userCreated ) => {
190- if ( userCreated === 'Success' ) {
191- props . history . push ( '/' ) ;
192- } else {
193- sessionIsCreated ( response . email , randomPassword ( ) , true ) . then (
194- ( loginStatus ) => {
195- if ( loginStatus === 'Success' ) {
196- props . history . push ( '/' ) ;
197- }
198- }
199- ) ;
200- }
201- }
202- ) ;
203- }
204- } ;
182+
183+ // const responseFacebook = (response) => {
184+ // if (response.accessToken) {
185+ // newUserIsCreated(response.email, response.email, randomPassword()).then(
186+ // (userCreated) => {
187+ // if (userCreated === 'Success') {
188+ // props.history.push('/');
189+ // } else {
190+ // sessionIsCreated(response.email, randomPassword(), true).then(
191+ // (loginStatus) => {
192+ // if (loginStatus === 'Success') {
193+ // props.history.push('/');
194+ // }
195+ // }
196+ // );
197+ // }
198+ // }
199+ // );
200+ // }
201+ // };
205202
206203 // NEW DARK MODE
207204 const handleDarkModeToggle = ( ) => {
@@ -225,7 +222,6 @@ const SignIn: React.FC<LoginInt & RouteComponentProps> = (props) => {
225222 right : 20 ,
226223 position : 'absolute'
227224 } }
228- // variant="contained"
229225 endIcon = { ! isDarkMode ? < Brightness3Icon /> : < Brightness5Icon /> }
230226 onClick = { handleDarkModeToggle }
231227 >
0 commit comments