|
|
|
|
@ -24,19 +24,27 @@ import { |
|
|
|
|
SectionTitle, |
|
|
|
|
} from '../../styled' |
|
|
|
|
|
|
|
|
|
const autoFillStyles = { |
|
|
|
|
':-webkit-autofill': { |
|
|
|
|
color: '#fff', |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const baseStyles = isMobileDevice |
|
|
|
|
? { |
|
|
|
|
color: '#fff', |
|
|
|
|
fontSize: '12px', |
|
|
|
|
fontWeight: 'bold', |
|
|
|
|
lineHeight: '12px', |
|
|
|
|
...autoFillStyles, |
|
|
|
|
} |
|
|
|
|
: { |
|
|
|
|
color: '#fff', |
|
|
|
|
fontFamily: 'Montserrat, Tahoma, sans-serif', |
|
|
|
|
fontSize: '20px', |
|
|
|
|
fontWeight: 'bold', |
|
|
|
|
lineHeight: '50px', |
|
|
|
|
lineHeight: '48px', |
|
|
|
|
...autoFillStyles, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const options = { placeholder: '', style: { base: baseStyles } } |
|
|
|
|
@ -81,12 +89,18 @@ export const AddCardFormInner = (props: Props) => { |
|
|
|
|
label={isLabelVisible(ElementTypes.CardHolder) ? 'card_holder_name' : ''} |
|
|
|
|
backgroundColor={inputsBackground} |
|
|
|
|
> |
|
|
|
|
<Input |
|
|
|
|
value={name} |
|
|
|
|
onChange={onNameChange} |
|
|
|
|
onFocus={onInputsFocus(ElementTypes.CardHolder)} |
|
|
|
|
onBlur={onInputsBlur(ElementTypes.CardHolder)} |
|
|
|
|
/> |
|
|
|
|
{/* не удаляем, без Form автозаполнение не работает */} |
|
|
|
|
<Form> |
|
|
|
|
<Input |
|
|
|
|
type='text' |
|
|
|
|
name='ccname' |
|
|
|
|
autoComplete='cc-name' |
|
|
|
|
value={name} |
|
|
|
|
onChange={onNameChange} |
|
|
|
|
onFocus={onInputsFocus(ElementTypes.CardHolder)} |
|
|
|
|
onBlur={onInputsBlur(ElementTypes.CardHolder)} |
|
|
|
|
/> |
|
|
|
|
</Form> |
|
|
|
|
</ElementContainer> |
|
|
|
|
|
|
|
|
|
<ElementContainer |
|
|
|
|
|