mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
fix(disable_user_signups): hide create account link under flag
This commit is contained in:
@ -12,6 +12,7 @@ import toast from 'react-hot-toast';
|
|||||||
import { useIsMutating, useMutation } from 'react-query';
|
import { useIsMutating, useMutation } from 'react-query';
|
||||||
|
|
||||||
import BaseModal from '@/components/shared/BaseModal';
|
import BaseModal from '@/components/shared/BaseModal';
|
||||||
|
import { FLAG_DISABLE_SIGNUPS } from '@/constants/flags';
|
||||||
import { login, LoginParams, loginWithGoogle, LoginWithGoogleParams } from '@/services/auth';
|
import { login, LoginParams, loginWithGoogle, LoginWithGoogleParams } from '@/services/auth';
|
||||||
import { ServerError } from '@/services/axios';
|
import { ServerError } from '@/services/axios';
|
||||||
import { useAppDispatch, useAppSelector } from '@/store/hooks';
|
import { useAppDispatch, useAppSelector } from '@/store/hooks';
|
||||||
@ -167,11 +168,13 @@ const LoginModal: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{!FLAG_DISABLE_SIGNUPS && (
|
||||||
<p className="text-xs">
|
<p className="text-xs">
|
||||||
<Trans t={t} i18nKey="modals.auth.login.register-text">
|
<Trans t={t} i18nKey="modals.auth.login.register-text">
|
||||||
If you don't have one, you can <a onClick={handleCreateAccount}>create an account</a> here.
|
If you don't have one, you can <a onClick={handleCreateAccount}>create an account</a> here.
|
||||||
</Trans>
|
</Trans>
|
||||||
</p>
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
<p className="text-xs">
|
<p className="text-xs">
|
||||||
<Trans t={t} i18nKey="modals.auth.login.recover-text">
|
<Trans t={t} i18nKey="modals.auth.login.recover-text">
|
||||||
|
|||||||
Reference in New Issue
Block a user