feat(#2415): added link to the site about company

keep-around/0ae2022e2873abf7c918f7349525eb4dd543e942
Rakov Roman 4 years ago
parent 588bf66375
commit 0ae2022e28
  1. 1
      src/config/lexics/userAccount.tsx
  2. 1
      src/config/pages.tsx
  3. 5
      src/features/AuthServiceApp/components/Registration/index.tsx
  4. 1
      src/features/CompanyInfo/config.tsx
  5. 15
      src/features/CompanyInfo/index.tsx
  6. 12
      src/features/CompanyInfo/styled.tsx
  7. 7
      src/features/UserAccount/index.tsx

@ -2,6 +2,7 @@ import { publicLexics } from './public'
import { paymentLexics } from './payment' import { paymentLexics } from './payment'
const navigations = { const navigations = {
about_the_project: 18170,
bank_card: 14205, bank_card: 14205,
logout: 15058, logout: 15058,
my_devices: 15052, my_devices: 15052,

@ -1,4 +1,5 @@
export const PAGES = { export const PAGES = {
about_the_project: 'https://instatsport.com/InStatTV/ott_platform',
home: '/', home: '/',
match: '/matches', match: '/matches',
player: '/players', player: '/players',

@ -20,6 +20,7 @@ import {
ButtonSolid, ButtonSolid,
Error, Error,
LanguageSelectWrapper, LanguageSelectWrapper,
Wrapper,
} from '../../styled' } from '../../styled'
import { import {
Label, Label,
@ -27,6 +28,7 @@ import {
ButtonOutline, ButtonOutline,
CheckboxWrapper, CheckboxWrapper,
} from './styled' } from './styled'
import { CompanyInfo } from '../../../CompanyInfo'
const Registration = () => { const Registration = () => {
const history = useHistory() const history = useHistory()
@ -51,6 +53,7 @@ const Registration = () => {
} = useRegistrationForm() } = useRegistrationForm()
return ( return (
<Wrapper>
<CenterBlock> <CenterBlock>
<Logo /> <Logo />
<Form onSubmit={handleSubmit}> <Form onSubmit={handleSubmit}>
@ -135,6 +138,8 @@ const Registration = () => {
/> />
</Form> </Form>
</CenterBlock> </CenterBlock>
<CompanyInfo textAlign='center' width='450px' />
</Wrapper>
) )
} }

@ -3,4 +3,5 @@ export const lexics = [
18082, 18082,
18083, 18083,
18084, 18084,
18170,
] ]

@ -1,10 +1,11 @@
import { T9n } from 'features/T9n' import { T9n } from 'features/T9n'
import { useLexicsConfig } from 'features/LexicsStore' import { useLexicsConfig } from 'features/LexicsStore'
import { PAGES } from 'config'
import { import {
CompanyInfoLink,
CompanyInfoText, CompanyInfoText,
CompanyInfoWrapper, CompanyInfoWrapper,
CompanyName,
} from './styled' } from './styled'
import { lexics } from './config' import { lexics } from './config'
@ -21,9 +22,15 @@ export const CompanyInfo = ({
return ( return (
<CompanyInfoWrapper style={{ maxWidth: width, textAlign }}> <CompanyInfoWrapper style={{ maxWidth: width, textAlign }}>
<CompanyName> <CompanyInfoText>
<T9n t='18081' /> <T9n t='18081' />{' | '}
</CompanyName> <CompanyInfoLink
to={{ pathname: PAGES.about_the_project }}
target='_blank'
>
<T9n t='18170' />
</CompanyInfoLink>
</CompanyInfoText>
<CompanyInfoText> <CompanyInfoText>
<T9n t='18082' /> <T9n t='18082' />
</CompanyInfoText> </CompanyInfoText>

@ -1,3 +1,5 @@
import { Link } from 'react-router-dom'
import styled, { css } from 'styled-components/macro' import styled, { css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent' import { isMobileDevice } from 'config/userAgent'
@ -8,14 +10,16 @@ export const CompanyInfoWrapper = styled.div`
font-weight: 400; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 15px; line-height: 15px;
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.5);
${isMobileDevice ? css` ${isMobileDevice ? css`
margin-top: 20px; margin-top: 20px;
` : ''} ` : ''}
` `
export const CompanyName = styled.div`
color: rgba(255, 255, 255, 0.8);
`
export const CompanyInfoText = styled.div`` export const CompanyInfoText = styled.div``
export const CompanyInfoLink = styled(Link)`
color: rgba(255, 255, 255, 0.7);
text-decoration: underline;
`

@ -52,6 +52,13 @@ const UserAccount = () => {
<StyledLink disabled={isProduction} to={`${PAGES.useraccount}/devices`}> <StyledLink disabled={isProduction} to={`${PAGES.useraccount}/devices`}>
<T9n t='my_devices' /> <T9n t='my_devices' />
</StyledLink> </StyledLink>
<StyledLink
disabled={isProduction}
target='_blank'
to={{ pathname: PAGES.about_the_project }}
>
<T9n t='about_the_project' />
</StyledLink>
<ScoreSwitch /> <ScoreSwitch />
<UnsubscribePrompt /> <UnsubscribePrompt />

Loading…
Cancel
Save