diff --git a/src/components/GoogleLoginButton.js b/src/components/GoogleLoginButton.js index 19ced05..5dd38de 100644 --- a/src/components/GoogleLoginButton.js +++ b/src/components/GoogleLoginButton.js @@ -187,7 +187,7 @@ class GoogleLoginButton extends Component { }; render() { - const { disabled, style, className, text = (this.props.t ? this.props.t('auth.loginWithGoogle') : 'Mit Google anmelden') } = this.props; + const { disabled, style, className, text = 'Loading...'} = this.props; const { isInitializing, isPrompting } = this.state; const isLoading = isInitializing || isPrompting || (this.context && !this.context.isLoaded); diff --git a/src/components/LoginComponent.js b/src/components/LoginComponent.js index 5af1196..c2c32a7 100644 --- a/src/components/LoginComponent.js +++ b/src/components/LoginComponent.js @@ -23,6 +23,7 @@ import CartSyncDialog from './CartSyncDialog.js'; import { localAndArchiveServer, mergeCarts } from '../utils/cartUtils.js'; import config from '../config.js'; import { withI18n } from '../i18n/withTranslation.js'; +import GoogleIcon from '@mui/icons-material/Google'; // Lazy load GoogleAuthProvider const GoogleAuthProvider = lazy(() => import('../providers/GoogleAuthProvider.js')); @@ -614,27 +615,26 @@ export class LoginComponent extends Component { )} {showGoogleAuth && ( -