mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 14:11:54 +03:00
fix(core): adjust notify style (#6724)
This commit is contained in:
parent
8d342f85ad
commit
704532bd2f
@ -64,7 +64,7 @@ export const AfterSignInSendEmail = ({
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
notify.error({
|
||||
message: 'Failed to send email, please try again.',
|
||||
title: 'Failed to send email, please try again.',
|
||||
});
|
||||
}
|
||||
setIsSending(false);
|
||||
|
@ -64,7 +64,7 @@ export const AfterSignUpSendEmail: FC<AuthPanelProps> = ({
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
notify.error({
|
||||
message: 'Failed to send email, please try again.',
|
||||
title: 'Failed to send email, please try again.',
|
||||
});
|
||||
}
|
||||
setIsSending(false);
|
||||
|
@ -67,7 +67,7 @@ function OAuthProvider({
|
||||
await authService.signInOauth(provider, redirectUri);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
notify.error({ message: 'Failed to sign in, please try again.' });
|
||||
notify.error({ title: 'Failed to sign in, please try again.' });
|
||||
} finally {
|
||||
setIsConnecting(false);
|
||||
mixpanel.track('OAuth', { provider });
|
||||
|
@ -60,7 +60,7 @@ export const SignInWithPassword: FC<AuthPanelProps> = ({
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
notify.error({
|
||||
message: 'Failed to send email, please try again.',
|
||||
title: 'Failed to send email, please try again.',
|
||||
});
|
||||
// TODO: handle error better
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ export const SignIn: FC<AuthPanelProps> = ({
|
||||
|
||||
// TODO: better error handling
|
||||
notify.error({
|
||||
message: 'Failed to send email. Please try again.',
|
||||
title: 'Failed to send email. Please try again.',
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -233,9 +233,8 @@ export const SignOutConfirmModal = () => {
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
// TODO: i18n
|
||||
notify({
|
||||
style: 'alert',
|
||||
message: 'Failed to sign out',
|
||||
notify.error({
|
||||
title: 'Failed to sign out',
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user