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

This commit is contained in:
EYHN
2024-04-29 03:51:40 +00:00
parent 8d342f85ad
commit 704532bd2f
6 changed files with 7 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ export const AfterSignInSendEmail = ({
} catch (err) { } catch (err) {
console.error(err); console.error(err);
notify.error({ notify.error({
message: 'Failed to send email, please try again.', title: 'Failed to send email, please try again.',
}); });
} }
setIsSending(false); setIsSending(false);

View File

@@ -64,7 +64,7 @@ export const AfterSignUpSendEmail: FC<AuthPanelProps> = ({
} catch (err) { } catch (err) {
console.error(err); console.error(err);
notify.error({ notify.error({
message: 'Failed to send email, please try again.', title: 'Failed to send email, please try again.',
}); });
} }
setIsSending(false); setIsSending(false);

View File

@@ -67,7 +67,7 @@ function OAuthProvider({
await authService.signInOauth(provider, redirectUri); await authService.signInOauth(provider, redirectUri);
} catch (err) { } catch (err) {
console.error(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 { } finally {
setIsConnecting(false); setIsConnecting(false);
mixpanel.track('OAuth', { provider }); mixpanel.track('OAuth', { provider });

View File

@@ -60,7 +60,7 @@ export const SignInWithPassword: FC<AuthPanelProps> = ({
} catch (err) { } catch (err) {
console.error(err); console.error(err);
notify.error({ notify.error({
message: 'Failed to send email, please try again.', title: 'Failed to send email, please try again.',
}); });
// TODO: handle error better // TODO: handle error better
} }

View File

@@ -101,7 +101,7 @@ export const SignIn: FC<AuthPanelProps> = ({
// TODO: better error handling // TODO: better error handling
notify.error({ 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) { } catch (err) {
console.error(err); console.error(err);
// TODO: i18n // TODO: i18n
notify({ notify.error({
style: 'alert', title: 'Failed to sign out',
message: 'Failed to sign out',
}); });
} }