From f9e1f5b1abffee75017f3bf4922513436d7448b7 Mon Sep 17 00:00:00 2001 From: marko-kraemer Date: Wed, 16 Apr 2025 02:34:56 +0100 Subject: [PATCH] wip --- .../dashboard/sidebar/nav-user-with-teams.tsx | 4 +- .../components/team/create-team-dialog.tsx | 31 +++++++++ frontend/src/components/ui/tabs.tsx | 66 +++++++++++++++++++ 3 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 frontend/src/components/team/create-team-dialog.tsx create mode 100644 frontend/src/components/ui/tabs.tsx diff --git a/frontend/src/components/dashboard/sidebar/nav-user-with-teams.tsx b/frontend/src/components/dashboard/sidebar/nav-user-with-teams.tsx index 2eef3cc1..7d846a43 100644 --- a/frontend/src/components/dashboard/sidebar/nav-user-with-teams.tsx +++ b/frontend/src/components/dashboard/sidebar/nav-user-with-teams.tsx @@ -249,7 +249,7 @@ export function NavUserWithTeams({ )} - + {/*
Add team
-
+ */} {/* User Settings Section */} diff --git a/frontend/src/components/team/create-team-dialog.tsx b/frontend/src/components/team/create-team-dialog.tsx new file mode 100644 index 00000000..9ccda150 --- /dev/null +++ b/frontend/src/components/team/create-team-dialog.tsx @@ -0,0 +1,31 @@ +"use client" + +import * as React from "react" +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog" +import NewTeamForm from "@/components/basejump/new-team-form" + +interface CreateTeamDialogProps { + open: boolean + onOpenChange: (open: boolean) => void +} +export function CreateTeamDialog({ open, onOpenChange }: CreateTeamDialogProps) { + return ( + + + + Create a new team + + Create a team to collaborate with others. + + + + + + ) +} \ No newline at end of file diff --git a/frontend/src/components/ui/tabs.tsx b/frontend/src/components/ui/tabs.tsx new file mode 100644 index 00000000..497ba5ea --- /dev/null +++ b/frontend/src/components/ui/tabs.tsx @@ -0,0 +1,66 @@ +"use client" + +import * as React from "react" +import * as TabsPrimitive from "@radix-ui/react-tabs" + +import { cn } from "@/lib/utils" + +function Tabs({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function TabsList({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function TabsTrigger({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function TabsContent({ + className, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +export { Tabs, TabsList, TabsTrigger, TabsContent }