u
This commit is contained in:
@@ -3,7 +3,9 @@ import { connect } from 'react-redux';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import GoogleIcon from '@mui/icons-material/Google';
|
||||
import { enqueueSnackbar } from 'notistack';
|
||||
import { notifyErrorMessage } from '../utils/notify';
|
||||
import { loginWithGoogle, selectAuthStatus, selectGoogleClientId } from '../store/authSlice';
|
||||
import {
|
||||
abortGoogleSignIn,
|
||||
FEDCM_BLOCKED_MESSAGE,
|
||||
@@ -61,7 +63,7 @@ class LoginPage extends Component {
|
||||
const detail = [err?.message || String(err), err?.code, err?.status]
|
||||
.filter(Boolean)
|
||||
.join(' · ');
|
||||
enqueueSnackbar(`Login failed: ${detail}`, { variant: 'error' });
|
||||
notifyErrorMessage(`Login failed: ${detail}`);
|
||||
} finally {
|
||||
this.setState({ busy: false });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user