feat(in-630): privacy policy fixes

pull/220/head
Margarita 3 years ago
parent 83880792cc
commit aa41e833c7
  1. 1
      Makefile
  2. 2
      src/config/clients/lff.tsx
  3. 3
      src/features/AuthServiceApp/components/ConfirmPopup/index.tsx
  4. 28
      src/features/UserAccount/components/PersonalInfoForm/index.tsx

@ -204,4 +204,3 @@ test:
generate-ssl-keys:
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365

@ -19,7 +19,7 @@ export const lff: ClientConfig = {
disabledHighlights: true,
disabledPreferences: true,
name: ClientNames.Lff,
privacyLink: '/clients/instat/terms-and-conditions.html',
privacyLink: '/privacy-policy-and-statement',
showSearch: true,
styles: {
background: 'background-image: url(/images/Checker.png);',

@ -1,7 +1,6 @@
import { T9n } from 'features/T9n'
import { client } from 'features/AuthServiceApp/config/clients'
import { client } from 'config/clients'
import { AUTH_SERVICE } from 'config/routes'
import {

@ -1,9 +1,6 @@
import { useMemo } from 'react'
import { client } from 'config/clients'
import { formIds } from 'config/form'
import { AUTH_SERVICE } from 'config/routes'
import { ClientNames } from 'config/clients/types'
import { Combobox } from 'features/Combobox'
import { Input } from 'features/Common'
@ -47,15 +44,6 @@ export const PersonalInfoForm = (props: Props) => {
updateFormValue,
} = useUserInfo(props)
const isPrivacyPolicyShown = useMemo(() => {
switch (client.name) {
case ClientNames.Facr:
return false
default:
return true
}
}, [])
return (
<Form>
<Input
@ -136,15 +124,13 @@ export const PersonalInfoForm = (props: Props) => {
>
<T9n t='terms_and_conditions' />
</PrivacyPolicyLink>
{isPrivacyPolicyShown && (
<PrivacyPolicyLink
target='_blank'
href={`${AUTH_SERVICE}${client.privacyLink}`}
id='personal_policy'
>
<T9n t='privacy_policy_and_statement' />
</PrivacyPolicyLink>
)}
<PrivacyPolicyLink
target='_blank'
href={`${AUTH_SERVICE}${client.privacyLink}`}
id='personal_policy'
>
<T9n t='privacy_policy_and_statement' />
</PrivacyPolicyLink>
</PrivacyWrapper>
</Form>
)

Loading…
Cancel
Save