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:
parent
e0225b8b54
commit
016e29c5a8
1 changed files with 19 additions and 0 deletions
19
ghost/members-api/static/auth/components/CouponInput.js
Normal file
19
ghost/members-api/static/auth/components/CouponInput.js
Normal 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>
|
||||
);
|
Loading…
Add table
Reference in a new issue