From 10f987ad24f02114f240227c9d1040627413d234 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Fri, 2 Jun 2023 14:04:38 +0100 Subject: [PATCH] Added className prop to `ImageUpload` refs https://github.com/TryGhost/Team/issues/3318 --- ghost/admin-x-settings/src/admin-x-ds/global/ImageUpload.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/admin-x-settings/src/admin-x-ds/global/ImageUpload.tsx b/ghost/admin-x-settings/src/admin-x-ds/global/ImageUpload.tsx index 6c543ff51d..cd1c318e1a 100644 --- a/ghost/admin-x-settings/src/admin-x-ds/global/ImageUpload.tsx +++ b/ghost/admin-x-settings/src/admin-x-ds/global/ImageUpload.tsx @@ -14,6 +14,7 @@ interface ImageUploadProps { deleteButtonContent?: React.ReactNode; onUpload: (file: File) => void; onDelete: () => void; + className?: string; } const ImageUpload: React.FC = ({ @@ -27,7 +28,8 @@ const ImageUpload: React.FC = ({ 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 = , onUpload, - onDelete + onDelete, + className }) => { if (imageURL) { return (