Ghost/ghost/members-auth-pages/components/CouponInput.js

20 lines
478 B
JavaScript
Raw Normal View History

import FormInput from './FormInput';
2019-05-07 11:29:07 +03:00
import {IconName} from './icons';
export default ({value, disabled, error, children, onInput, className}) => (
<FormInput
type="text"
name="coupon"
label="coupon"
value={value}
error={error}
icon={IconName}
placeholder="Coupon..."
required={false}
disabled={disabled}
className={className}
onInput={onInput}>
{children}
</FormInput>
);