aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/components/Drawer.tsx
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2024-07-30 16:54:10 +0100
committerGitHub <noreply@github.com>2024-07-30 16:54:10 +0100
commit808138de633e410c1d3867d4fb7cb74967647605 (patch)
treef180b7066b91d8d8d8006219a118439be1621d74 /ui/src/components/Drawer.tsx
parentchore(deps): bump debian (#2320) (diff)
downloadatuin-808138de633e410c1d3867d4fb7cb74967647605.zip
chore: remove ui directory (#2329)
This is still in development, but rather than clutter the commit history and issues with an unreleased project I've split the UI into its own repo. Once ready for release, I'll either merge the ui code back in, or just make the repo public.
Diffstat (limited to 'ui/src/components/Drawer.tsx')
-rw-r--r--ui/src/components/Drawer.tsx24
1 files changed, 0 insertions, 24 deletions
diff --git a/ui/src/components/Drawer.tsx b/ui/src/components/Drawer.tsx
deleted file mode 100644
index 91753624..00000000
--- a/ui/src/components/Drawer.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Drawer as VDrawer } from "vaul";
-
-export default function Drawer({
- trigger,
- children,
- width,
- open,
- onOpenChange,
-}: any) {
- return (
- <VDrawer.Root direction="right" open={open} onOpenChange={onOpenChange}>
- <VDrawer.Trigger asChild>{trigger}</VDrawer.Trigger>
- <VDrawer.Portal>
- <VDrawer.Overlay className="fixed inset-0 bg-black/40 z-50" />
- <VDrawer.Content
- style={{ width: width || "400px" }}
- className={`bg-white flex flex-col z-50 h-full mt-24 fixed bottom-0 right-0`}
- >
- {children}
- </VDrawer.Content>
- </VDrawer.Portal>
- </VDrawer.Root>
- );
-}