fix(#2622): facr-tv improvements before release

keep-around/5a178e8905732945b59488228ca02a1c3a09188f
Rakov Roman 3 years ago
parent 1461a3b081
commit 5a178e8905
  1. 33792
      package-lock.json
  2. 27
      src/features/AuthServiceApp/components/Registration/index.tsx

33792
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -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>&nbsp;
<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>
)}
/>

Loading…
Cancel
Save