0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed className prop from ImageUpload

refs https://github.com/TryGhost/Team/issues/3318
This commit is contained in:
Djordje Vlaisavljevic 2023-06-02 14:47:56 +01:00
parent e9caf73175
commit f5e81c9b16

View file

@ -14,7 +14,6 @@ interface ImageUploadProps {
deleteButtonContent?: React.ReactNode;
onUpload: (file: File) => void;
onDelete: () => void;
className?: string;
}
const ImageUpload: React.FC<ImageUploadProps> = ({
@ -28,8 +27,7 @@ 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,
className
onDelete
}) => {
if (imageURL) {
return (