mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added className prop to ImageUpload
refs https://github.com/TryGhost/Team/issues/3318
This commit is contained in:
parent
8a8561fc94
commit
10f987ad24
1 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,7 @@ interface ImageUploadProps {
|
|||
deleteButtonContent?: React.ReactNode;
|
||||
onUpload: (file: File) => void;
|
||||
onDelete: () => void;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ImageUpload: React.FC<ImageUploadProps> = ({
|
||||
|
@ -27,7 +28,8 @@ const ImageUpload: React.FC<ImageUploadProps> = ({
|
|||
deleteButtonClassName = 'invisible absolute right-4 top-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-[rgba(0,0,0,0.75)] text-white hover:bg-black group-hover:!visible',
|
||||
deleteButtonContent = <Icon color='white' name='trash' size='sm' />,
|
||||
onUpload,
|
||||
onDelete
|
||||
onDelete,
|
||||
className
|
||||
}) => {
|
||||
if (imageURL) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue