keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
parent
2564bb1557
commit
140cd0d50d
@ -1,3 +1,28 @@ |
||||
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 { T9n } from 'features/T9n' |
||||
import { Input, ButtonSolid } from 'features/Common' |
||||
import { |
||||
BlockTitle, |
||||
ButtonsBlock, |
||||
Form, |
||||
} from 'features/Login/styled' |
||||
import { useLexicsStore } from 'features/LexicsStore' |
||||
|
||||
import { Card, Row } from '../../styled' |
||||
|
||||
export const CardStep = () => ( |
||||
<Form> |
||||
<BlockTitle>Привязка карты</BlockTitle> |
||||
export const CardStep = () => { |
||||
const { translate } = useLexicsStore() |
||||
const defaultMessage = translate('please_fill_out_this_field') |
||||
return ( |
||||
<Form> |
||||
<BlockTitle> |
||||
<T9n t='step_title_card' /> |
||||
</BlockTitle> |
||||
|
||||
<Card> |
||||
<Input |
||||
id='cardNumber' |
||||
label='Номер карты' |
||||
paddingX={21} |
||||
/> |
||||
<Row> |
||||
<Card> |
||||
<Input |
||||
id='expiration' |
||||
label='Срок действия' |
||||
wrapperWidth={280} |
||||
inputWidth={85} |
||||
id='cardNumber' |
||||
labelLexic='form_card_number' |
||||
labelWidth={122} |
||||
paddingX={21} |
||||
title={defaultMessage} |
||||
/> |
||||
<Input |
||||
id='code' |
||||
label='CVC / CVV' |
||||
wrapperWidth={184} |
||||
inputWidth={30} |
||||
maxLength={3} |
||||
paddingX={18.6} |
||||
/> |
||||
</Row> |
||||
</Card> |
||||
<ButtonsBlock> |
||||
<ButtonSolid>Далее</ButtonSolid> |
||||
</ButtonsBlock> |
||||
</Form> |
||||
) |
||||
<Row> |
||||
<Input |
||||
id='expiration' |
||||
labelLexic='form_card_expiration' |
||||
wrapperWidth={280} |
||||
inputWidth={85} |
||||
paddingX={21} |
||||
title={defaultMessage} |
||||
/> |
||||
<Input |
||||
id='code' |
||||
labelLexic='form_card_code' |
||||
wrapperWidth={184} |
||||
inputWidth={30} |
||||
maxLength={3} |
||||
paddingX={18.6} |
||||
title={defaultMessage} |
||||
/> |
||||
</Row> |
||||
</Card> |
||||
<ButtonsBlock> |
||||
<ButtonSolid type='submit'> |
||||
<T9n t='next' /> |
||||
</ButtonSolid> |
||||
</ButtonsBlock> |
||||
</Form> |
||||
) |
||||
} |
||||
|
||||
Loading…
Reference in new issue