feat(flags): introduce flags, disable_user_signups

fix #698
This commit is contained in:
Amruth Pillai
2022-03-18 11:12:26 +01:00
parent 910f764823
commit b6267d07ba
3 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import LanguageSwitcher from '@/components/shared/LanguageSwitcher';
import Logo from '@/components/shared/Logo';
import NoSSR from '@/components/shared/NoSSR';
import { screenshots } from '@/config/screenshots';
import { FLAG_DISABLE_SIGNUPS } from '@/constants/flags';
import testimonials from '@/data/testimonials';
import { logout } from '@/store/auth/authSlice';
import { setTheme } from '@/store/build/buildSlice';
@ -74,7 +75,7 @@ const Home: NextPage = () => {
<>
<Button onClick={handleLogin}>{t('landing.actions.login')}</Button>
<Button variant="outlined" onClick={handleRegister}>
<Button variant="outlined" onClick={handleRegister} disabled={FLAG_DISABLE_SIGNUPS}>
{t('landing.actions.register')}
</Button>
</>