mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Removed unused type field
- this is no longer used and causes a React warning because we end up passing it to a textarea
This commit is contained in:
parent
ecf52d4685
commit
ad77cec008
4 changed files with 1 additions and 4 deletions
|
@ -18,7 +18,6 @@ export interface TextAreaProps extends HTMLProps<HTMLTextAreaElement> {
|
||||||
error?: boolean;
|
error?: boolean;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
hint?: React.ReactNode;
|
hint?: React.ReactNode;
|
||||||
clearBg?: boolean;
|
|
||||||
fontStyle?: FontStyles;
|
fontStyle?: FontStyles;
|
||||||
className?: string;
|
className?: string;
|
||||||
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
||||||
|
|
|
@ -129,7 +129,6 @@ const EmbedSignupSidebar: React.FC<SidebarProps> = ({selectedLayout,
|
||||||
/>
|
/>
|
||||||
<TextArea
|
<TextArea
|
||||||
className='text-grey-800'
|
className='text-grey-800'
|
||||||
clearBg={false}
|
|
||||||
fontStyle='mono'
|
fontStyle='mono'
|
||||||
hint={`Paste this code onto any website where you'd like your signup to appear.`}
|
hint={`Paste this code onto any website where you'd like your signup to appear.`}
|
||||||
title='Embed code'
|
title='Embed code'
|
||||||
|
|
|
@ -109,7 +109,6 @@ const RecommendationDescriptionForm: React.FC<Props<EditOrAddRecommendation | Re
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<TextArea
|
<TextArea
|
||||||
clearBg={true}
|
|
||||||
error={Boolean(errors.description)}
|
error={Boolean(errors.description)}
|
||||||
// Note: we don't show the error text here, because errors are related to the character count
|
// Note: we don't show the error text here, because errors are related to the character count
|
||||||
hint={<>Max: <strong>200</strong> characters. You’ve used <strong className={descriptionLengthColor}>{descriptionLength}</strong></>}
|
hint={<>Max: <strong>200</strong> characters. You’ve used <strong className={descriptionLengthColor}>{descriptionLength}</strong></>}
|
||||||
|
|
|
@ -136,7 +136,7 @@ const Connect: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
<StripeButton href={stripeConnectUrl} tag='a' target='_blank' />
|
<StripeButton href={stripeConnectUrl} tag='a' target='_blank' />
|
||||||
<Heading className='mb-2 mt-8' level={6} grey>Step 2 — <span className='text-black dark:text-white'>Paste secure key</span></Heading>
|
<Heading className='mb-2 mt-8' level={6} grey>Step 2 — <span className='text-black dark:text-white'>Paste secure key</span></Heading>
|
||||||
<TextArea clearBg={false} error={Boolean(error)} hint={error || undefined} placeholder='Paste your secure key here' onChange={onTokenChange}></TextArea>
|
<TextArea error={Boolean(error)} hint={error || undefined} placeholder='Paste your secure key here' onChange={onTokenChange}></TextArea>
|
||||||
{submitEnabled && <Button className='mt-5' color='green' label='Save Stripe settings' onClick={onSubmit} />}
|
{submitEnabled && <Button className='mt-5' color='green' label='Save Stripe settings' onClick={onSubmit} />}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue