0
Fork 0
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:
Djordje Vlaisavljevic 2023-06-02 14:04:38 +01:00
parent 8a8561fc94
commit 10f987ad24

View file

@ -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 (