diff --git a/ghost/admin-x-settings/src/admin-x-ds/assets/icons/trash.svg b/ghost/admin-x-settings/src/admin-x-ds/assets/icons/trash.svg new file mode 100644 index 0000000000..16de1465bb --- /dev/null +++ b/ghost/admin-x-settings/src/admin-x-ds/assets/icons/trash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ghost/admin-x-settings/src/admin-x-ds/global/FileUpload.tsx b/ghost/admin-x-settings/src/admin-x-ds/global/FileUpload.tsx index ba8e1b7b1d..9a2c9ddc5d 100644 --- a/ghost/admin-x-settings/src/admin-x-ds/global/FileUpload.tsx +++ b/ghost/admin-x-settings/src/admin-x-ds/global/FileUpload.tsx @@ -8,10 +8,12 @@ export interface FileUploadProps { * Can be any component that has no default onClick eventh handline. E.g. buttons and links won't work */ children?: React.ReactNode; + className?: string; onUpload: (file: File) => void; + style: {} } -const FileUpload: React.FC = ({id, onUpload, children, ...props}) => { +const FileUpload: React.FC = ({id, onUpload, children, style, ...props}) => { const [selectedFile, setSelectedFile] = useState(null); const handleFileChange = (event: ChangeEvent) => { @@ -31,7 +33,7 @@ const FileUpload: React.FC = ({id, onUpload, children, ...props }, [handleFileUpload]); return ( -