diff --git a/app/[leaflet_id]/actions/PublishButton.tsx b/app/[leaflet_id]/actions/PublishButton.tsx index 220afc23..03e67857 100644 --- a/app/[leaflet_id]/actions/PublishButton.tsx +++ b/app/[leaflet_id]/actions/PublishButton.tsx @@ -144,7 +144,7 @@ const UpdateButton = () => { content: isOAuthSessionError(result.error) ? ( ) : ( - "Failed to publish" + "We couldn't publish this. Please try again!" ), type: "error", }); diff --git a/app/globals.css b/app/globals.css index c6072517..a1686904 100644 --- a/app/globals.css +++ b/app/globals.css @@ -688,3 +688,7 @@ pre.shiki { z-index: 1; background: rgba(var(--bg-page), 1); } + +.toastError a { + color: var(--color-white); +} diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx index ba0acd35..a8ac5171 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx @@ -192,7 +192,7 @@ export function CommentBox(props: { content: isOAuthSessionError(result.error) ? ( ) : ( - "Failed to post comment" + "We couldn't post this. Please try again!" ), type: "error", }); diff --git a/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx b/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx index a8f432a7..34b608bf 100644 --- a/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx +++ b/app/lish/[did]/[publication]/dashboard/settings/SettingsContent.tsx @@ -317,7 +317,7 @@ const DeletePublication = () => { ) : typeof result.error === "string" ? ( result.error ) : ( - "Failed to delete publication" + "We couldn't delete the publication. Please try again!" ), }); return; diff --git a/components/LoginButton.tsx b/components/LoginButton.tsx index d9711cac..81820aa8 100644 --- a/components/LoginButton.tsx +++ b/components/LoginButton.tsx @@ -93,7 +93,7 @@ export const LoginContent = (props: { toaster({ content: (
- Could not send email — please try again + We couldnt send the email. Please try again!
), type: "error", diff --git a/components/OAuthError.tsx b/components/OAuthError.tsx index 01c5732d..036dda04 100644 --- a/components/OAuthError.tsx +++ b/components/OAuthError.tsx @@ -14,7 +14,10 @@ export function OAuthErrorMessage({ return (
Your session has expired or is invalid - + Sign in again
diff --git a/components/RecommendButton.tsx b/components/RecommendButton.tsx index 7223ba60..2855069c 100644 --- a/components/RecommendButton.tsx +++ b/components/RecommendButton.tsx @@ -112,7 +112,7 @@ export function RecommendButton(props: { content: isOAuthSessionError(result.error) ? ( ) : ( - "oh no! error!" + "Oh no! Something went wrong!" ), type: "error", }); @@ -173,11 +173,7 @@ export function RecommendButton(props: { <> {button} {loginOpen && ( - + )} ); diff --git a/components/Subscribe/ManageSubscribe.tsx b/components/Subscribe/ManageSubscribe.tsx index fcf34569..f76221c4 100644 --- a/components/Subscribe/ManageSubscribe.tsx +++ b/components/Subscribe/ManageSubscribe.tsx @@ -49,7 +49,8 @@ export const ManageSubscription = (props: { type: "error", content: (
- {LINK_ERROR_MESSAGES[res.error] ?? "Couldn't link email."} + {LINK_ERROR_MESSAGES[res.error] ?? + "We couldn't link that email. Please try again!"}
), }); @@ -81,7 +82,8 @@ export const ManageSubscription = (props: { type: "error", content: (
- {LINK_ERROR_MESSAGES[res.error] ?? "Couldn't confirm code."} + {LINK_ERROR_MESSAGES[res.error] ?? + "We couldn't confirm the code. Please try again!"}
), }); @@ -107,14 +109,15 @@ export const ManageSubscription = (props: { ) : (
- {UNSUBSCRIBE_ERROR_MESSAGES[res.error] ?? "Couldn't unsubscribe."} + {UNSUBSCRIBE_ERROR_MESSAGES[res.error] ?? + "We couldn't unsubscribe you. Please try again!"}
), }); return; } toaster({ - content:
Unsubscribed.
, + content:
Unsubscribed!
, type: "success", }); router.refresh(); diff --git a/components/ThemeManager/PubThemeSetter.tsx b/components/ThemeManager/PubThemeSetter.tsx index 117d37e0..381bec2c 100644 --- a/components/ThemeManager/PubThemeSetter.tsx +++ b/components/ThemeManager/PubThemeSetter.tsx @@ -101,7 +101,7 @@ export function usePubThemeEditorState() { }); } else { toaster({ - content: "Failed to update theme", + content: "Something went wrong. Please try again!", type: "error", }); } diff --git a/components/Toast.tsx b/components/Toast.tsx index 23966603..fd2129b0 100644 --- a/components/Toast.tsx +++ b/components/Toast.tsx @@ -107,9 +107,9 @@ const Toast = (props: {