Moved ImageUpload labels from props to children

refs https://github.com/TryGhost/Team/issues/3318
This commit is contained in:
Djordje Vlaisavljevic 2023-06-02 14:43:04 +01:00
parent 091b3acd61
commit 449ce994f4
2 changed files with 6 additions and 4 deletions

View File

@ -67,10 +67,11 @@ const Facebook: React.FC = () => {
height='300px'
id='twitter-image'
imageURL={facebookImage}
label='Upload Facebook image'
onDelete={handleImageDelete}
onUpload={handleImageUpload}
/>
>
Upload Facebook image
</ImageUpload>
<div className="flex flex-col gap-x-6 gap-y-7 px-4 pb-7">
<TextField
clearBg={true}

View File

@ -69,10 +69,11 @@ const Twitter: React.FC = () => {
height='300px'
id='twitter-image'
imageURL={twitterImage}
label='Upload Twitter image'
onDelete={handleImageDelete}
onUpload={handleImageUpload}
/>
>
Upload Twitter image
</ImageUpload>
<div className="flex flex-col gap-x-6 gap-y-7 px-4 pb-7">
<TextField
clearBg={true}