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 (
diff --git a/src/components/Group.tsx b/src/components/Group.tsx index 60d1ae9..d665fdf 100644 --- a/src/components/Group.tsx +++ b/src/components/Group.tsx @@ -15,9 +15,8 @@ const Group = ({

{data.title != "NO GROUP" && data.title}

-
-
{data.blocks.map((block, i) => { return ( @@ -32,7 +31,6 @@ const Group = ({ ); })}
-
); };