Add jpeg and svg to image filter.

This commit is contained in:
Franco Montenegro 2022-09-02 12:20:23 -03:00
parent 0dcfe8f3aa
commit 3eb99f8c73

View file

@ -14,7 +14,7 @@ type Props = {
function ModalImageUpload(props: Props) { function ModalImageUpload(props: Props) {
const { closeModal, currentValue, title, assetName, helpText, onUpdate } = props; const { closeModal, currentValue, title, assetName, helpText, onUpdate } = props;
const filters = React.useMemo(() => [{ name: 'Images', extensions: ['jpg', 'png', 'gif'] }]); const filters = React.useMemo(() => [{ name: 'Images', extensions: ['jpg', 'jpeg', 'png', 'gif', 'svg'] }]);
return ( return (
<Modal isOpen type="card" onAborted={closeModal} contentLabel={title}> <Modal isOpen type="card" onAborted={closeModal} contentLabel={title}>