mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: filters
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user