Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(disable_user_signups): hide create account link under flag

Amruth Pillai80acfe97c74b
diff --git a/client/modals/auth/LoginModal.tsx b/client/modals/auth/LoginModal.tsx
index c1392ac0f..949ad9a76 100644
--- a/client/modals/auth/LoginModal.tsx
+++ b/client/modals/auth/LoginModal.tsx
@@ -12,6 +12,7 @@ import toast from 'react-hot-toast';
import { useIsMutating, useMutation } from 'react-query';
import BaseModal from '@/components/shared/BaseModal';
+import { FLAG_DISABLE_SIGNUPS } from '@/constants/flags';
import { login, LoginParams, loginWithGoogle, LoginWithGoogleParams } from '@/services/auth';
import { ServerError } from '@/services/axios';
import { useAppDispatch, useAppSelector } from '@/store/hooks';
@@ -167,11 +168,13 @@ const LoginModal: React.FC = () => {
/>
</form>
- <p className="text-xs">
- <Trans t={t} i18nKey="modals.auth.login.register-text">
- If you don&apos;t have one, you can <a onClick={handleCreateAccount}>create an account</a> here.
- </Trans>
- </p>
+ {!FLAG_DISABLE_SIGNUPS && (
+ <p className="text-xs">
+ <Trans t={t} i18nKey="modals.auth.login.register-text">
+ If you don&apos;t have one, you can <a onClick={handleCreateAccount}>create an account</a> here.
+ </Trans>
+ </p>
+ )}
<p className="text-xs">
<Trans t={t} i18nKey="modals.auth.login.recover-text">