Skip to content

Commit e68bb3b

Browse files
authored
fix(condo): DOMA-7476 add terms of use file link to the register page (#3991)
1 parent 439abbc commit e68bb3b

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

apps/condo/domains/user/components/auth/InputPhoneForm.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const InputPhoneForm: React.FC<IInputPhoneFormProps> = ({ onFinish }) =>
5656
const LoginBySBBOLMsg = intl.formatMessage({ id: 'LoginBySBBOL' })
5757
const ConsentContent = intl.formatMessage({ id: 'pages.auth.register.info.ConsentContent' })
5858
const PrivacyPolicyContent = intl.formatMessage({ id: 'pages.auth.register.info.PrivacyPolicyContent' })
59+
const TermsOfUseContent = intl.formatMessage({ id: 'pages.auth.register.info.termsOfUseContent' })
5960

6061
const REGISTER_PHONE_LABEL = <label style={{ alignSelf: 'flex-end' }}>{PhoneMsg}</label>
6162

@@ -167,6 +168,16 @@ export const InputPhoneForm: React.FC<IInputPhoneFormProps> = ({ onFinish }) =>
167168
<FormattedMessage
168169
id='pages.auth.register.info.PersonalDataProcessingConsent'
169170
values={{
171+
termsOfUse: (
172+
<Typography.Link
173+
style={{ color: colors.black }}
174+
target='_blank'
175+
href='/termsofuse.pdf'
176+
rel='noreferrer'
177+
>
178+
{TermsOfUseContent}
179+
</Typography.Link>
180+
),
170181
consentLink: (
171182
<Typography.Link
172183
style={{ color: colors.black }}
@@ -234,4 +245,4 @@ export const InputPhoneForm: React.FC<IInputPhoneFormProps> = ({ onFinish }) =>
234245
</Col>
235246
</Row>
236247
)
237-
}
248+
}

apps/condo/lang/en/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,10 @@
426426
"pages.auth.register.field.Phone": "Phone",
427427
"pages.auth.register.field.SmsCode": "Code from SMS",
428428
"pages.auth.register.info.SmsCodeSent": "Sent SMS on your phone number {phone}.",
429-
"pages.auth.register.info.PersonalDataProcessingConsent": "I give my {consentLink} to the Doma LLC for processing of my personal data. {privacyPolicyLink}",
429+
"pages.auth.register.info.PersonalDataProcessingConsent": "I give my {consentLink} to the Doma LLC for processing of my personal data and accept with {termsOfUse}. {privacyPolicyLink}",
430430
"pages.auth.register.info.ConsentContent": "consent",
431431
"pages.auth.register.info.PrivacyPolicyContent": "Privacy policy",
432+
"pages.auth.register.info.termsOfUseContent": "Terms of use",
432433
"pages.auth.register.info.termsOfService": "Terms of Service",
433434
"pages.auth.register.info.RecaptchaPrivacyPolicyContent": "This site is protected by reCAPTCHA and the Google {PrivacyPolicy} and {TermsOfService} apply.",
434435
"pages.auth.register.ResendSmsLabel": "Resend SMS",

apps/condo/lang/ru/ru.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,10 @@
426426
"pages.auth.register.field.Phone": "Телефон",
427427
"pages.auth.register.field.SmsCode": "Код из СМС",
428428
"pages.auth.register.info.SmsCodeSent": "Отправили SMS-код на номер {phone}",
429-
"pages.auth.register.info.PersonalDataProcessingConsent": "Нажимая на кнопку «Зарегистрироваться» вы принимаете {privacyPolicyLink} и даёте {consentLink}",
429+
"pages.auth.register.info.PersonalDataProcessingConsent": "Нажимая на кнопку «Зарегистрироваться» вы принимаете {termsOfUse}, {privacyPolicyLink} и даёте {consentLink}",
430430
"pages.auth.register.info.ConsentContent": "согласие на обработку персональных данных",
431431
"pages.auth.register.info.PrivacyPolicyContent": "условия политики конфиденциальности",
432+
"pages.auth.register.info.termsOfUseContent": "пользовательское соглашение",
432433
"pages.auth.register.info.termsOfService": "обслуживания",
433434
"pages.auth.register.info.RecaptchaPrivacyPolicyContent": "Этот сайт под защитой системы reCAPTCHA и к нему применяются {PrivacyPolicy} и {TermsOfService} Google",
434435
"pages.auth.register.ResendSmsLabel": "Отправить СМС-код ещё раз",

apps/condo/public/termsofuse.pdf

224 KB
Binary file not shown.

0 commit comments

Comments
 (0)