This commit is contained in:
seb
2026-08-01 01:36:44 +02:00
parent 9582370b0b
commit 6d720d34ed
6 changed files with 79 additions and 5 deletions

View File

@@ -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 });
}