From 30daea0c4f1309c8d9e767a314fa47221dadd6ae Mon Sep 17 00:00:00 2001 From: Zeng1998 <1129142694@qq.com> Date: Sat, 29 Oct 2022 09:13:11 +0800 Subject: [PATCH] fix: typo (#357) * feat: resource dialog enhancements * update * fix: typo Co-authored-by: boojack --- web/src/components/ResourcesDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/ResourcesDialog.tsx b/web/src/components/ResourcesDialog.tsx index 8ddb49ab..52b46834 100644 --- a/web/src/components/ResourcesDialog.tsx +++ b/web/src/components/ResourcesDialog.tsx @@ -90,7 +90,7 @@ const ResourcesDialog: React.FC = (props: Props) => { inputEl.click(); }; - const handlPreviewBtnClick = (resource: Resource) => { + const handlePreviewBtnClick = (resource: Resource) => { const resourceUrl = `${window.location.origin}/o/r/${resource.id}/${resource.filename}`; if (resource.type.startsWith("image")) { showPreviewImageDialog(resourceUrl); @@ -194,7 +194,7 @@ const ResourcesDialog: React.FC = (props: Props) => { <>