diff --git a/src/components/Block.tsx b/src/components/Block.tsx index ba3817d..2278593 100644 --- a/src/components/Block.tsx +++ b/src/components/Block.tsx @@ -21,23 +21,19 @@ const Block = ({ title, description, entries, minifiedHeader, maxColumns }: Prop () => calculateRowAndColNumber(entries, maxColumns || MAX_COL_SPAN), [entries] ); + const colSpan = useMemo(() => { if (columns < MIN_COL_SPAN) return MIN_COL_SPAN; return columns - }, [entries]); + }, [entries, columns]); - const rowSpan = useMemo(() => { - return rows + 1 - }, [rows]); + const rowSpan = rows + 1; - const blockHeight = useMemo( - () => rowSpan, - [rows] - ); const filteredEntries = useFilter(entries); + return (