Skip to content

Commit

Permalink
chore: fix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzoo committed Nov 17, 2024
1 parent e69f281 commit 729e4d4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/shared/component/FileGrid/FileGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement | null>(null);
Expand All @@ -65,7 +73,7 @@ const FileGrid = ({ title, type, volume, variant = 'primary', isSelectable = fal
return y + 118 + 20 < document.documentElement.clientHeight - 48;
};

return (
return (
<article css={cardStyle(variant !== 'primary')}>
{isSelectable && (
<CheckBox css={{ position: 'absolute', right: 20 }} isChecked={isSelected} onChange={() => onSelect?.()} />
Expand Down

0 comments on commit 729e4d4

Please sign in to comment.