From acd16f488b3fbdf4f870190b98edc055ff0b7af0 Mon Sep 17 00:00:00 2001 From: feruzm Date: Sun, 3 Dec 2023 13:56:00 +0530 Subject: [PATCH] webp image selection --- .../deck-threads-form-toolbar-image-picker.tsx | 2 +- src/common/components/editor-toolbar/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/components/decks/deck-threads-form/deck-threads-form-toolbar-image-picker.tsx b/src/common/components/decks/deck-threads-form/deck-threads-form-toolbar-image-picker.tsx index f502b49641b..a98c23c2e17 100644 --- a/src/common/components/decks/deck-threads-form/deck-threads-form-toolbar-image-picker.tsx +++ b/src/common/components/decks/deck-threads-form/deck-threads-form-toolbar-image-picker.tsx @@ -30,7 +30,7 @@ export const DeckThreadsFormToolbarImagePicker = ({ onAddImage }: Props) => { const checkFile = (filename: string) => { const filenameLow = filename.toLowerCase(); - return ["jpg", "jpeg", "gif", "png"].some((el) => filenameLow.endsWith(el)); + return ["jpg", "jpeg", "gif", "png", "webp"].some((el) => filenameLow.endsWith(el)); }; const fileInputChanged = (e: React.ChangeEvent): void => { diff --git a/src/common/components/editor-toolbar/index.tsx b/src/common/components/editor-toolbar/index.tsx index f32eacf8a1a..f43a551f2ff 100644 --- a/src/common/components/editor-toolbar/index.tsx +++ b/src/common/components/editor-toolbar/index.tsx @@ -390,7 +390,7 @@ export class EditorToolbar extends Component { checkFile = (filename: string) => { const filenameLow = filename.toLowerCase(); - return ["jpg", "jpeg", "gif", "png"].some((el) => filenameLow.endsWith(el)); + return ["jpg", "jpeg", "gif", "png", "webp"].some((el) => filenameLow.endsWith(el)); }; render() {