feat: transition to next safe zustand

This commit is contained in:
TrèsAbhi committed 2024-07-06 20:07:46 -05:00
1 parent 595941ab9c
commit b965893bfc
9 files changed
+109 -45

No files matched your search

@@ -1,5 +1,6 @@
import { Skeleton, Table } from '@radix-ui/themes';
import { times } from 'lodash';
import { tankPerformanceSortTypeNamesArray } from '../../../../stores/tankPerformanceSort';
export function RowLoader() {
return (
@@ -8,7 +9,7 @@ export function RowLoader() {
<Skeleton height="100%" width="128px" />
</Table.RowHeaderCell>
{times(13, (index) => (
{times(tankPerformanceSortTypeNamesArray.length, (index) => (
<Table.Cell key={index} align="center">
<Skeleton height="1em" width="32px" />
</Table.Cell>
@@ -108,7 +108,7 @@ export function Tanks() {
return tanksSorted.filter((tank) =>
filterTank(filters, awaitedTankDefinitions[tank.id]),
);
}, [filters, tanksSorted]);
}, [filters, tanksSorted, sort]);
return (
<Table.Body>