fix(core): adjust notify style (#6724)

This commit is contained in:
EYHN 2024-04-29 03:51:40 +00:00
parent 8d342f85ad
commit 704532bd2f
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C
6 changed files with 7 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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