From 80acfe97c74bfa05b719285b19144144f3f7c5ba Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Fri, 18 Mar 2022 11:17:30 +0100 Subject: [PATCH] fix(disable_user_signups): hide create account link under flag --- client/modals/auth/LoginModal.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client/modals/auth/LoginModal.tsx b/client/modals/auth/LoginModal.tsx index c1392ac0..949ad9a7 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 = () => { /> -

- - If you don't have one, you can create an account here. - -

+ {!FLAG_DISABLE_SIGNUPS && ( +

+ + If you don't have one, you can create an account here. + +

+ )}