From 9f312a23eeea718b9794c35f220f4aac0be62cb8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 30 Sep 2024 20:28:02 +0300 Subject: [PATCH] make arg optional --- src/components/dialogs/GifSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/GifSelect.tsx b/src/components/dialogs/GifSelect.tsx index 1afc588dad..133b3db8be 100644 --- a/src/components/dialogs/GifSelect.tsx +++ b/src/components/dialogs/GifSelect.tsx @@ -31,12 +31,12 @@ import {GifPreview} from './GifSelect.shared' export function GifSelectDialog({ controlRef, - onClose, onSelectGif: onSelectGifProp, + onClose, }: { controlRef: React.RefObject<{open: () => void}> - onClose: () => void onSelectGif: (gif: Gif) => void + onClose?: () => void }) { const control = Dialog.useDialogControl()