Hard coded strings to avoid en.json conflicts
This commit is contained in:
1 parent
090d002578
commit
88d539b2a4
3 files changed
+5
-8
No files matched your search
@@ -87,10 +87,7 @@ const PasswordPanel = () => {
|
|||||||
// Check for expired/invalid token before submitting
|
// Check for expired/invalid token before submitting
|
||||||
if (!authToken) {
|
if (!authToken) {
|
||||||
createToast({
|
createToast({
|
||||||
body: t(
|
body: "Your session has expired. Please log in again.",
|
||||||
"passwordPanel.sessionExpired",
|
|
||||||
"Your session has expired. Please log in again."
|
|
||||||
),
|
|
||||||
});
|
});
|
||||||
dispatch(clearAuthState());
|
dispatch(clearAuthState());
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
@@ -271,8 +268,8 @@ const PasswordPanel = () => {
|
|||||||
alignItems="center"
|
alignItems="center"
|
||||||
>
|
>
|
||||||
<TextLink
|
<TextLink
|
||||||
text={t("passwordPanel.forgotPasswordText", "Forgot password?")}
|
text={"Forgot password?"}
|
||||||
linkText={t("passwordPanel.resetPasswordText", "Reset password")}
|
linkText={"Reset password"}
|
||||||
state={{ from: location.pathname }}
|
state={{ from: location.pathname }}
|
||||||
href={"/forgot-password"}
|
href={"/forgot-password"}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ const CheckEmail = () => {
|
|||||||
<Trans
|
<Trans
|
||||||
i18nKey={
|
i18nKey={
|
||||||
location.state?.from === "/account/password"
|
location.state?.from === "/account/password"
|
||||||
? "auth.forgotPassword.links.accountPassword"
|
? "Go back to <a>Account Password</a>"
|
||||||
: "auth.forgotPassword.links.login"
|
: "auth.forgotPassword.links.login"
|
||||||
}
|
}
|
||||||
components={{
|
components={{
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ const ForgotPassword = () => {
|
|||||||
<Trans
|
<Trans
|
||||||
i18nKey={
|
i18nKey={
|
||||||
location.state?.from
|
location.state?.from
|
||||||
? "auth.forgotPassword.links.accountPassword"
|
? "Go back to <a>Account Password</a>"
|
||||||
: "auth.forgotPassword.links.login"
|
: "auth.forgotPassword.links.login"
|
||||||
}
|
}
|
||||||
components={{
|
components={{
|
||||||
|
|||||||
Reference in new issue
Block a user