fix(#2248): change links to terms in useraccount and confirm popup

keep-around/bb75dd1c73b58d0f55b380f9529e5f59371d068c
Andrei Dekterev 4 years ago
parent 273434a209
commit bb75dd1c73
  1. 6
      src/features/AuthServiceApp/components/ConfirmPopup/index.tsx
  2. 1
      src/features/AuthServiceApp/config/lexics.tsx
  3. 1
      src/features/AuthServiceApp/styled.tsx
  4. 5
      src/features/UserAccount/components/PersonalInfoForm/index.tsx

@ -2,6 +2,8 @@ import { T9n } from 'features/T9n'
import { client } from 'features/AuthServiceApp/config/clients' import { client } from 'features/AuthServiceApp/config/clients'
import { AUTH_SERVICE } from 'config/routes'
import { import {
ScBody, ScBody,
Modal, Modal,
@ -42,11 +44,11 @@ export const ConfirmPopup = (props: Props) => {
</ScText> </ScText>
<ScText> <ScText>
<T9n t='by_clicking' /> <T9n t='by_clicking' />
<ScLink href={client.termsLink} target='_blank'> <ScLink href={`${AUTH_SERVICE}${client.termsLink}`} target='_blank'>
<T9n t='terms_and_conditions' /> <T9n t='terms_and_conditions' />
</ScLink>&nbsp; </ScLink>&nbsp;
<T9n t='and' /> <T9n t='and' />
<ScLink href={client.privacyLink} target='_blank'> <ScLink href={`${AUTH_SERVICE}${client.privacyLink}`} target='_blank'>
<T9n t='privacy_policy_and_statement' /> <T9n t='privacy_policy_and_statement' />
</ScLink> </ScLink>
</ScText> </ScText>

@ -1,6 +1,7 @@
export const lexics = { export const lexics = {
accept_cookies: 17203, accept_cookies: 17203,
accept_privacy: 17202, accept_privacy: 17202,
and: 17878,
change_password: 13442, change_password: 13442,
check_email: 15907, check_email: 15907,
check_password: 15842, check_password: 15842,

@ -41,6 +41,7 @@ export const CenterBlock = styled.div`
${isMobileDevice ${isMobileDevice
? css` ? css`
margin-top: 107px; margin-top: 107px;
overflow-y: auto;
@media screen and (orientation: landscape) { @media screen and (orientation: landscape) {
width: 290px; width: 290px;
margin: auto; margin: auto;

@ -1,5 +1,6 @@
import { client } from 'config/clients' import { client } from 'config/clients'
import { formIds } from 'config/form' import { formIds } from 'config/form'
import { AUTH_SERVICE } from 'config/routes'
import { Combobox } from 'features/Combobox' import { Combobox } from 'features/Combobox'
import { Input } from 'features/Common' import { Input } from 'features/Common'
@ -113,13 +114,13 @@ export const PersonalInfoForm = (props: Props) => {
<PrivacyWrapper> <PrivacyWrapper>
<PrivacyPolicyLink <PrivacyPolicyLink
target='_blank' target='_blank'
href={client.termsLink} href={`${AUTH_SERVICE}${client.termsLink}`}
> >
<T9n t='terms_and_conditions' /> <T9n t='terms_and_conditions' />
</PrivacyPolicyLink> </PrivacyPolicyLink>
<PrivacyPolicyLink <PrivacyPolicyLink
target='_blank' target='_blank'
href={client.privacyLink} href={`${AUTH_SERVICE}${client.privacyLink}`}
> >
<T9n t='privacy_policy_and_statement' /> <T9n t='privacy_policy_and_statement' />
</PrivacyPolicyLink> </PrivacyPolicyLink>

Loading…
Cancel
Save