|
|
|
|
@ -1,3 +1,5 @@ |
|
|
|
|
import { Fragment, useMemo } from 'react' |
|
|
|
|
|
|
|
|
|
import { useHistory } from 'react-router' |
|
|
|
|
|
|
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
|
@ -5,6 +7,9 @@ import { Checkbox } from 'features/Common/Checkbox' |
|
|
|
|
import { ArrowLoader } from 'features/ArrowLoader' |
|
|
|
|
import { RegisterPopup } from 'features/AuthServiceApp/components/RegisterPopup' |
|
|
|
|
import { client } from 'features/AuthServiceApp/config/clients' |
|
|
|
|
import { CompanyInfo } from 'features/CompanyInfo' |
|
|
|
|
|
|
|
|
|
import { ClientNames } from 'config/clients/types' |
|
|
|
|
|
|
|
|
|
import { LanguageSelect } from '../LanguageSelect' |
|
|
|
|
import { PasswordInput } from '../PasswordInput' |
|
|
|
|
@ -28,7 +33,6 @@ import { |
|
|
|
|
ButtonOutline, |
|
|
|
|
CheckboxWrapper, |
|
|
|
|
} from './styled' |
|
|
|
|
import { CompanyInfo } from '../../../CompanyInfo' |
|
|
|
|
|
|
|
|
|
const Registration = () => { |
|
|
|
|
const history = useHistory() |
|
|
|
|
@ -52,6 +56,15 @@ const Registration = () => { |
|
|
|
|
termsAccepted, |
|
|
|
|
} = useRegistrationForm() |
|
|
|
|
|
|
|
|
|
const isAvailableToClient = useMemo(() => { |
|
|
|
|
switch (client.name) { |
|
|
|
|
case ClientNames.Facr: |
|
|
|
|
return false |
|
|
|
|
default: |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<Wrapper> |
|
|
|
|
<CenterBlock> |
|
|
|
|
@ -95,10 +108,14 @@ const Registration = () => { |
|
|
|
|
<Link href={client.termsLink} target='_blank'> |
|
|
|
|
<T9n t='terms_and_conditions' /> |
|
|
|
|
</Link> |
|
|
|
|
<T9n t='and' /> |
|
|
|
|
<Link href={client.privacyLink} target='_blank'> |
|
|
|
|
<T9n t='privacy_policy_and_statement' /> |
|
|
|
|
</Link> |
|
|
|
|
{isAvailableToClient && ( |
|
|
|
|
<Fragment> |
|
|
|
|
<T9n t='and' /> |
|
|
|
|
<Link href={client.privacyLink} target='_blank'> |
|
|
|
|
<T9n t='privacy_policy_and_statement' /> |
|
|
|
|
</Link> |
|
|
|
|
</Fragment> |
|
|
|
|
)} |
|
|
|
|
</Label> |
|
|
|
|
)} |
|
|
|
|
/> |
|
|
|
|
|