|
|
|
|
@ -4,12 +4,17 @@ import { Background } from 'features/Background' |
|
|
|
|
import { Combobox } from 'features/Combobox' |
|
|
|
|
import { Input } from 'features/Common' |
|
|
|
|
import { Form } from 'features/Login/styled' |
|
|
|
|
import { T9n } from 'features/T9n' |
|
|
|
|
import { useLexicsStore, useLexicsConfig } from 'features/LexicsStore' |
|
|
|
|
|
|
|
|
|
import { userAccountLexics } from 'config/lexics/userAccount' |
|
|
|
|
|
|
|
|
|
import { CardNumber } from './CardNumber' |
|
|
|
|
import { UserAccountButton } from './UserAccountButton' |
|
|
|
|
import { PageTitle } from './PageTitle' |
|
|
|
|
import { UserAccountSubscription } from './UserAccountSubscription' |
|
|
|
|
import { TextNoBorder } from './TextNoBorder' |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
FormWrapper, |
|
|
|
|
OutlinedButton, |
|
|
|
|
@ -21,203 +26,224 @@ import { |
|
|
|
|
|
|
|
|
|
const labelWidth = 78 |
|
|
|
|
|
|
|
|
|
export const UserAccount = () => ( |
|
|
|
|
<UserAccountComponentWrapper> |
|
|
|
|
<Background> |
|
|
|
|
<UserAccountWrapper> |
|
|
|
|
<PageTitle titleText='Личный кабинет' /> |
|
|
|
|
<UserAccountFormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle>Основное</UserAccountBlockTitle> |
|
|
|
|
<Input |
|
|
|
|
id='firstname' |
|
|
|
|
label='Имя' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='lastname' |
|
|
|
|
label='Фамилия' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='phone' |
|
|
|
|
label='Телефон' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='email' |
|
|
|
|
type='email' |
|
|
|
|
label='E-mail' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Combobox |
|
|
|
|
withArrow |
|
|
|
|
options={[ |
|
|
|
|
{ id: 1, name: 'Армения' }, |
|
|
|
|
{ id: 2, name: 'Латвия' }, |
|
|
|
|
{ id: 3, name: 'Россия' }, |
|
|
|
|
]} |
|
|
|
|
label='Страна' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<OutlinedButton>Сохранить изменения</OutlinedButton> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle>Оплата</UserAccountBlockTitle> |
|
|
|
|
<CardNumber visa label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber checked label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber label='1234 1234 1234 1234' /> |
|
|
|
|
<UserAccountButton text='Добавить карту' /> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle>Подписки</UserAccountBlockTitle> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='radio' |
|
|
|
|
packageName='Базовая' |
|
|
|
|
packageAction='Изменить' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Российская Премьер-Лига' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={299} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Manchester United' |
|
|
|
|
/> |
|
|
|
|
<UserAccountButton text='Выбрать подписку' /> |
|
|
|
|
<TextNoBorder |
|
|
|
|
text='Следующее списание 31.02.2020' |
|
|
|
|
amount={4796} |
|
|
|
|
/> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
</UserAccountFormWrapper> |
|
|
|
|
</UserAccountWrapper> |
|
|
|
|
</Background> |
|
|
|
|
<Background> |
|
|
|
|
<UserAccountWrapper> |
|
|
|
|
<PageTitle titleText='Личный кабинет' /> |
|
|
|
|
<UserAccountFormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle>Основное</UserAccountBlockTitle> |
|
|
|
|
<Input |
|
|
|
|
id='firstname' |
|
|
|
|
label='Имя' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='lastname' |
|
|
|
|
label='Фамилия' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='phone' |
|
|
|
|
label='Телефон' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='email' |
|
|
|
|
type='email' |
|
|
|
|
label='E-mail' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Combobox |
|
|
|
|
withArrow |
|
|
|
|
options={[ |
|
|
|
|
{ id: 1, name: 'Армения' }, |
|
|
|
|
{ id: 2, name: 'Латвия' }, |
|
|
|
|
{ id: 3, name: 'Россия' }, |
|
|
|
|
]} |
|
|
|
|
label='Страна' |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<OutlinedButton>Сохранить изменения</OutlinedButton> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle>Оплата</UserAccountBlockTitle> |
|
|
|
|
<CardNumber visa label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber checked label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber label='1234 1234 1234 1234' /> |
|
|
|
|
<UserAccountButton text='Добавить карту' /> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle>Подписки</UserAccountBlockTitle> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='radio' |
|
|
|
|
packageName='Базовая' |
|
|
|
|
packageAction='Изменить' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Российская Премьер-Лига' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
amount={299} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Manchester United' |
|
|
|
|
/> |
|
|
|
|
<UserAccountButton text='Выбрать подписку' /> |
|
|
|
|
<TextNoBorder |
|
|
|
|
text='Следующее списание 31.02.2020' |
|
|
|
|
amount={4796} |
|
|
|
|
/> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
</UserAccountFormWrapper> |
|
|
|
|
</UserAccountWrapper> |
|
|
|
|
</Background> |
|
|
|
|
</UserAccountComponentWrapper> |
|
|
|
|
) |
|
|
|
|
export const UserAccount = () => { |
|
|
|
|
useLexicsConfig(userAccountLexics) |
|
|
|
|
const { translate } = useLexicsStore() |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<UserAccountComponentWrapper> |
|
|
|
|
<Background> |
|
|
|
|
<UserAccountWrapper> |
|
|
|
|
<PageTitle titleText={translate('user_account')} /> |
|
|
|
|
<UserAccountFormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle> |
|
|
|
|
<T9n t='main' /> |
|
|
|
|
</UserAccountBlockTitle> |
|
|
|
|
<Input |
|
|
|
|
id='firstname' |
|
|
|
|
label={translate('name')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='lastname' |
|
|
|
|
label={translate('lastname')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='phone' |
|
|
|
|
label={translate('phone')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='email' |
|
|
|
|
type='email' |
|
|
|
|
label={translate('mail')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Combobox |
|
|
|
|
withArrow |
|
|
|
|
options={[ |
|
|
|
|
{ id: 1, name: 'Армения' }, |
|
|
|
|
{ id: 2, name: 'Латвия' }, |
|
|
|
|
{ id: 3, name: 'Россия' }, |
|
|
|
|
]} |
|
|
|
|
label={translate('country')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<OutlinedButton> |
|
|
|
|
<T9n t='save_changes' /> |
|
|
|
|
</OutlinedButton> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle> |
|
|
|
|
<T9n t='payment' /> |
|
|
|
|
</UserAccountBlockTitle> |
|
|
|
|
<CardNumber visa label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber checked label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber label='1234 1234 1234 1234' /> |
|
|
|
|
<UserAccountButton text={translate('add_card')} /> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle> |
|
|
|
|
<T9n t='subscriptions' /> |
|
|
|
|
</UserAccountBlockTitle> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='radio' |
|
|
|
|
packageName='Базовая' |
|
|
|
|
packageAction={translate('change')} |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Российская Премьер-Лига' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={299} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Manchester United' |
|
|
|
|
/> |
|
|
|
|
<UserAccountButton text={translate('select_subscription')} /> |
|
|
|
|
<TextNoBorder |
|
|
|
|
text={`${translate('next_debit')} 31.02.2020`} |
|
|
|
|
amount={4796} |
|
|
|
|
/> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
</UserAccountFormWrapper> |
|
|
|
|
</UserAccountWrapper> |
|
|
|
|
</Background> |
|
|
|
|
<Background> |
|
|
|
|
<UserAccountWrapper> |
|
|
|
|
<PageTitle titleText={translate('user_account')} /> |
|
|
|
|
<UserAccountFormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle> |
|
|
|
|
<T9n t='main' /> |
|
|
|
|
</UserAccountBlockTitle> |
|
|
|
|
<Input |
|
|
|
|
id='firstname' |
|
|
|
|
label={translate('name')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='lastname' |
|
|
|
|
label={translate('lastname')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='phone' |
|
|
|
|
label={translate('phone')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Input |
|
|
|
|
id='email' |
|
|
|
|
type='email' |
|
|
|
|
label={translate('mail')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<Combobox |
|
|
|
|
withArrow |
|
|
|
|
options={[ |
|
|
|
|
{ id: 1, name: 'Армения' }, |
|
|
|
|
{ id: 2, name: 'Латвия' }, |
|
|
|
|
{ id: 3, name: 'Россия' }, |
|
|
|
|
]} |
|
|
|
|
label={translate('country')} |
|
|
|
|
labelWidth={labelWidth} |
|
|
|
|
/> |
|
|
|
|
<OutlinedButton> |
|
|
|
|
<T9n t='save_changes' /> |
|
|
|
|
</OutlinedButton> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle> |
|
|
|
|
<T9n t='payment' /> |
|
|
|
|
</UserAccountBlockTitle> |
|
|
|
|
<CardNumber visa label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber checked label='1234 1234 1234 1234' /> |
|
|
|
|
<CardNumber label='1234 1234 1234 1234' /> |
|
|
|
|
<UserAccountButton text={translate('add_card')} /> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
<FormWrapper> |
|
|
|
|
<Form> |
|
|
|
|
<UserAccountBlockTitle> |
|
|
|
|
<T9n t='subscriptions' /> |
|
|
|
|
</UserAccountBlockTitle> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='radio' |
|
|
|
|
packageName='Базовая' |
|
|
|
|
packageAction={translate('add_card')} |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={1999} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Российская Премьер-Лига' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
noMarginBottom |
|
|
|
|
amount={499} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Primera División' |
|
|
|
|
/> |
|
|
|
|
<UserAccountSubscription |
|
|
|
|
noMarginTop |
|
|
|
|
amount={299} |
|
|
|
|
checked |
|
|
|
|
inputType='checkbox' |
|
|
|
|
label='Manchester United' |
|
|
|
|
/> |
|
|
|
|
<UserAccountButton text={translate('select_subscription')} /> |
|
|
|
|
<TextNoBorder |
|
|
|
|
text={`${translate('next_debit')} 31.02.2020`} |
|
|
|
|
amount={4796} |
|
|
|
|
/> |
|
|
|
|
</Form> |
|
|
|
|
</FormWrapper> |
|
|
|
|
</UserAccountFormWrapper> |
|
|
|
|
</UserAccountWrapper> |
|
|
|
|
</Background> |
|
|
|
|
</UserAccountComponentWrapper> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|