From 729e4d44cee755aa517a83763da8dba825654496 Mon Sep 17 00:00:00 2001 From: wuzoo Date: Sun, 17 Nov 2024 22:57:13 +0900 Subject: [PATCH] chore: fix formatter --- src/shared/component/FileGrid/FileGrid.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/shared/component/FileGrid/FileGrid.tsx b/src/shared/component/FileGrid/FileGrid.tsx index 1b2035ffa..e5900c4ab 100644 --- a/src/shared/component/FileGrid/FileGrid.tsx +++ b/src/shared/component/FileGrid/FileGrid.tsx @@ -51,7 +51,15 @@ const getIconByType = (type: string) => { } }; -const FileGrid = ({ title, type, volume, variant = 'primary', isSelectable = false, onSelect, isSelected = false }: FileGridProps) => { +const FileGrid = ({ + title, + type, + volume, + variant = 'primary', + isSelectable = false, + onSelect, + isSelected = false, +}: FileGridProps) => { const { isOpen, close, toggle } = useOverlay(); const optionRef = useRef(null); @@ -65,7 +73,7 @@ const FileGrid = ({ title, type, volume, variant = 'primary', isSelectable = fal return y + 118 + 20 < document.documentElement.clientHeight - 48; }; - return ( + return (
{isSelectable && ( onSelect?.()} />