0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Added CouponInput component

no-issue

This can be used in the subscribe pages to pass coupon info through
This commit is contained in:
Fabien O'Carroll 2019-04-16 19:03:55 +02:00
parent e0225b8b54
commit 016e29c5a8

View file

@ -0,0 +1,19 @@
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>
);