mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
fix(core): adjust notify style (#6724)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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',
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user