feat: add WebSocket URL for client and update GoogleLoginButton text to 'Loading...' for better user feedback

This commit is contained in:
sebseb7
2025-07-30 16:02:11 +02:00
parent afcdbb29c9
commit 14787cbd74
3 changed files with 9 additions and 8 deletions

View File

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