feat: filters

This commit is contained in:
tresabhi committed 2024-11-17 16:41:43 -06:00
1 parent d851a05f53
commit f1c31c6d79
6 files changed
+40 -9

No files matched your search

@@ -0,0 +1,23 @@
import { ReloadIcon } from '@radix-ui/react-icons';
import { Button, Flex } from '@radix-ui/themes';
import { TierList } from '../../stores/tierList';
import { tierListRows } from './Table/constants';
export function TierListControls() {
const mutateTierList = TierList.useMutation();
return (
<Flex justify="center">
<Button
color="red"
onClick={() => {
mutateTierList((draft) => {
draft.tanks = tierListRows.map(() => []);
});
}}
>
<ReloadIcon /> Reset
</Button>
</Flex>
);
}