mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: better landing screen
This commit is contained in:
1 parent
bfceacdf3c
commit
ef173758aa
5 files changed
+113
-112
No files matched your search
@@ -1,16 +1,26 @@
|
||||
import { Checkbox, Flex, Table } from "@radix-ui/themes";
|
||||
import { Button, Checkbox, Flex, Table } from "@radix-ui/themes";
|
||||
import { useLocale } from "../hooks/useLocale";
|
||||
import { Playlist } from "../stores/playlist";
|
||||
import { TankRowHeaderCell } from "./TankRowHeaderCell";
|
||||
|
||||
export function PlaylistOrder() {
|
||||
const { unwrap, strings } = useLocale();
|
||||
const { strings } = useLocale();
|
||||
const list = Playlist.use((state) => state.list);
|
||||
|
||||
if (!list) return null;
|
||||
|
||||
return (
|
||||
<Flex justify="center" flexGrow="1" flexBasis="0">
|
||||
<Flex direction="column" gap="4" align="center" flexGrow="1" flexBasis="0">
|
||||
<Button
|
||||
onClick={() => {
|
||||
Playlist.mutate((draft) => {
|
||||
draft.list = undefined;
|
||||
});
|
||||
}}
|
||||
>
|
||||
{strings.website.tools.playlist.clear}
|
||||
</Button>
|
||||
|
||||
<Table.Root variant="surface">
|
||||
<Table.Header>
|
||||
<Table.Row>
|
||||
|
||||
Reference in new issue
Block a user