diff --git a/client/src/components/Login.tsx b/client/src/components/Login.tsx index 84e16aad..80ab1419 100644 --- a/client/src/components/Login.tsx +++ b/client/src/components/Login.tsx @@ -86,7 +86,7 @@ const LoginWithoutI18n = (props: LoginProps) => { onChange: onChangeUserType, } = useInput(""); - const [verifyResent, setVerifyResent] = React.useState(false); + const [isEmailResent, setIsEmailResent] = React.useState(false); const [placeholderEmail, setPlaceholderEmail] = useState(""); @@ -189,17 +189,17 @@ const LoginWithoutI18n = (props: LoginProps) => { ) : ( <> Don't have an account? - )} @@ -211,13 +211,13 @@ const LoginWithoutI18n = (props: LoginProps) => { return (

{i18n._(t`Click the link we sent to ${email}. It may take a few minutes to arrive.`)}

- {!verifyResent && ( + {!isEmailResent && ( Didn’t get the link? )} AuthClient.resendVerifyEmail()} @@ -237,7 +237,7 @@ const LoginWithoutI18n = (props: LoginProps) => {

AuthClient.resendVerifyEmail()} diff --git a/client/src/components/UserSettingField.tsx b/client/src/components/UserSettingField.tsx index abc13212..c55e06e4 100644 --- a/client/src/components/UserSettingField.tsx +++ b/client/src/components/UserSettingField.tsx @@ -120,7 +120,7 @@ const EmailSettingFieldWithoutI18n = (props: EmailSettingFieldProps) => { const { i18n, currentValue, onSubmit } = props; const userContext = useContext(UserContext); const { email: oldEmail, verified } = userContext.user as JustfixUser; - const [verifyResent, setVerifyResent] = React.useState(false); + const [isEmailResent, setIsEmailResent] = React.useState(false); const [existingUserError, setExistingUserError] = useState(false); const { value: email, @@ -162,9 +162,9 @@ const EmailSettingFieldWithoutI18n = (props: EmailSettingFieldProps) => { Email address not verified. Click the link we sent to {email} start receiving Building Updates. - {!verifyResent && Didn’t get the link?} + {!isEmailResent && Didn’t get the link?} AuthClient.resendVerifyEmail()} /> @@ -238,7 +238,7 @@ const UserSettingFieldWithoutI18n = (props: UserSettingFieldProps) => {
+ />
{!!verifyCallout && verifyCallout} diff --git a/client/src/containers/UnsubscribePage.tsx b/client/src/containers/UnsubscribePage.tsx index ed0d0579..72f15ca8 100644 --- a/client/src/containers/UnsubscribePage.tsx +++ b/client/src/containers/UnsubscribePage.tsx @@ -77,7 +77,7 @@ const UnsubscribePage = withI18n()((props: withI18nProps) => { ))}