mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36: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:
parent
b28f3a02d9
commit
0970fa6a6d
1 changed files with 19 additions and 0 deletions
|
@ -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>
|
||||||
|
);
|
Loading…
Add table
Reference in a new issue