Ghost/ghost/members-auth-pages/components/CouponInput.js
Fabien O'Carroll f0f1583817 Added CouponInput component
no-issue

This can be used in the subscribe pages to pass coupon info through
2019-05-07 17:15:50 +02:00

20 lines
480 B
JavaScript

import FormInput from './FormInput';
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>
);