keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
parent
2564bb1557
commit
140cd0d50d
@ -1,3 +1,28 @@ |
|||||||
export const publicLexics = { |
export const publicLexics = { |
||||||
authorization: 500, |
form_address1: 12914, |
||||||
|
form_address2: 12915, |
||||||
|
form_card_code: 12918, |
||||||
|
form_card_expiration: 2023, |
||||||
|
form_card_number: 2022, |
||||||
|
form_city: 11401, |
||||||
|
form_country: 835, |
||||||
|
form_email: 12912, |
||||||
|
form_firstname: 645, |
||||||
|
form_lastname: 858, |
||||||
|
form_password: 751, |
||||||
|
form_phone: 1656, |
||||||
|
form_postal_code: 12913, |
||||||
|
form_region: 12932, |
||||||
|
login: 1367, |
||||||
|
next: 12916, |
||||||
|
please_fill_out_this_field: 12933, |
||||||
|
register: 1305, |
||||||
|
select_language: 1005, |
||||||
|
step_title_card: 12917, |
||||||
|
step_title_login: 500, |
||||||
|
step_title_registration: 1306, |
||||||
|
step_title_subscription: 12919, |
||||||
|
subscription_done: 2668, |
||||||
|
subscription_extra: 6036, |
||||||
|
subscription_for: 12920, |
||||||
} |
} |
||||||
|
|||||||
@ -1,44 +1,58 @@ |
|||||||
import React from 'react' |
import React from 'react' |
||||||
|
|
||||||
|
import { T9n } from 'features/T9n' |
||||||
import { Input, ButtonSolid } from 'features/Common' |
import { Input, ButtonSolid } from 'features/Common' |
||||||
import { |
import { |
||||||
BlockTitle, |
BlockTitle, |
||||||
ButtonsBlock, |
ButtonsBlock, |
||||||
Form, |
Form, |
||||||
} from 'features/Login/styled' |
} from 'features/Login/styled' |
||||||
|
import { useLexicsStore } from 'features/LexicsStore' |
||||||
|
|
||||||
import { Card, Row } from '../../styled' |
import { Card, Row } from '../../styled' |
||||||
|
|
||||||
export const CardStep = () => ( |
export const CardStep = () => { |
||||||
|
const { translate } = useLexicsStore() |
||||||
|
const defaultMessage = translate('please_fill_out_this_field') |
||||||
|
return ( |
||||||
<Form> |
<Form> |
||||||
<BlockTitle>Привязка карты</BlockTitle> |
<BlockTitle> |
||||||
|
<T9n t='step_title_card' /> |
||||||
|
</BlockTitle> |
||||||
|
|
||||||
<Card> |
<Card> |
||||||
<Input |
<Input |
||||||
id='cardNumber' |
id='cardNumber' |
||||||
label='Номер карты' |
labelLexic='form_card_number' |
||||||
|
labelWidth={122} |
||||||
paddingX={21} |
paddingX={21} |
||||||
|
title={defaultMessage} |
||||||
/> |
/> |
||||||
<Row> |
<Row> |
||||||
<Input |
<Input |
||||||
id='expiration' |
id='expiration' |
||||||
label='Срок действия' |
labelLexic='form_card_expiration' |
||||||
wrapperWidth={280} |
wrapperWidth={280} |
||||||
inputWidth={85} |
inputWidth={85} |
||||||
paddingX={21} |
paddingX={21} |
||||||
|
title={defaultMessage} |
||||||
/> |
/> |
||||||
<Input |
<Input |
||||||
id='code' |
id='code' |
||||||
label='CVC / CVV' |
labelLexic='form_card_code' |
||||||
wrapperWidth={184} |
wrapperWidth={184} |
||||||
inputWidth={30} |
inputWidth={30} |
||||||
maxLength={3} |
maxLength={3} |
||||||
paddingX={18.6} |
paddingX={18.6} |
||||||
|
title={defaultMessage} |
||||||
/> |
/> |
||||||
</Row> |
</Row> |
||||||
</Card> |
</Card> |
||||||
<ButtonsBlock> |
<ButtonsBlock> |
||||||
<ButtonSolid>Далее</ButtonSolid> |
<ButtonSolid type='submit'> |
||||||
|
<T9n t='next' /> |
||||||
|
</ButtonSolid> |
||||||
</ButtonsBlock> |
</ButtonsBlock> |
||||||
</Form> |
</Form> |
||||||
) |
) |
||||||
|
} |
||||||
|
|||||||
Loading…
Reference in new issue