feat(1525): added link to terms (#451)

keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
Mirlan 4 years ago committed by GitHub
parent 46ad1ec3f5
commit a412667467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/config/lexics/userAccount.tsx
  2. 6
      src/features/AuthStore/helpers.tsx
  3. 8
      src/features/UserAccount/components/PersonalInfoForm/index.tsx
  4. 9
      src/features/UserAccount/components/PersonalInfoForm/styled.tsx

@ -29,6 +29,7 @@ export const userAccountLexics = {
payment: 13015,
payment_info: 15059,
phone: 1656,
privacy_policy_and_statement: 15404,
remove: 15063,
save_changes: 13017,
select_subscription: 12583,

@ -1,13 +1,15 @@
import type { UserManagerSettings } from 'oidc-client'
import { WebStorageStateStore } from 'oidc-client'
export const AUTH_PROVIDER_URL = 'https://auth.instat.tv'
export const getClientSettings = (): UserManagerSettings => ({
authority: 'https://auth.instat.tv/',
authority: AUTH_PROVIDER_URL,
automaticSilentRenew: true,
client_id: 'ott-web',
filterProtocolClaims: false,
loadUserInfo: false,
metadataUrl: 'https://auth.instat.tv/.well-known/openid-configuration',
metadataUrl: `${AUTH_PROVIDER_URL}/.well-known/openid-configuration`,
redirect_uri: `${window.origin}/redirect`,
response_mode: 'query',
response_type: 'id_token token',

@ -1,5 +1,6 @@
import { formIds } from 'config/form'
import { AUTH_PROVIDER_URL } from 'features/AuthStore/helpers'
import { Combobox } from 'features/Combobox'
import { Input } from 'features/Common'
import { T9n } from 'features/T9n'
@ -15,6 +16,7 @@ import {
ButtonWrapper,
PasswordInput,
SectionTitle,
PrivacyPolicyLink,
} from './styled'
const labelWidth = 76
@ -144,6 +146,12 @@ export const PersonalInfoForm = (props: Props) => {
</SolidButton>
<Error t={readFormError(formError) || ''} />
</ButtonWrapper>
<PrivacyPolicyLink
target='_blank'
href={`${AUTH_PROVIDER_URL}/terms-and-conditions`}
>
<T9n t='privacy_policy_and_statement' />
</PrivacyPolicyLink>
</Form>
)
}

@ -94,3 +94,12 @@ export const PasswordInput = styled(PasswordInputBase)`
margin-bottom: 1rem;
}
`
export const PrivacyPolicyLink = styled.a`
display: inline-block;
margin-top: 4px;
font-size: 14px;
line-height: 18px;
color: #FFFFFF;
text-decoration: underline;
`

Loading…
Cancel
Save