diff --git a/apps/web/src/components/shared/LeaveTeamDialog.tsx b/apps/web/src/components/shared/LeaveTeamDialog.tsx index dcdccc4..8fd6579 100644 --- a/apps/web/src/components/shared/LeaveTeamDialog.tsx +++ b/apps/web/src/components/shared/LeaveTeamDialog.tsx @@ -12,9 +12,13 @@ import { } from "@/components/ui/alert-dialog"; import { DropdownMenuItem } from "../ui/dropdown-menu"; import { UserX } from "lucide-react"; -import { leaveTeamMutationClient as _unusedForNowleaveTeamMutationClientleaveTeamMutationClient } from "@/lib/queries"; +import { leaveTeamMutationClient as _unusedForNowleaveTeamMutationClientleaveTeamMutationClient } from "@/lib/functions/queries"; import { useMutation as _unusedForNowuseMutation } from "@tanstack/react-query"; - +/** + * Dialog component that allows a user to leave a team. It prompts the user for confirmation before proceeding with the action. If the team is private, it warns the user that they will need a new invitation to rejoin. If the team is public, it informs the user that they can rejoin later but will lose access to team data. + * @param param + * @returns + */ export function LeaveTeamDialog({ teamId: _unusedForNowTeamId, teamName, diff --git a/apps/web/src/components/shared/Navbar/UserButton.tsx b/apps/web/src/components/shared/Navbar/UserButton.tsx index 0373ed7..d599bd9 100644 --- a/apps/web/src/components/shared/Navbar/UserButton.tsx +++ b/apps/web/src/components/shared/Navbar/UserButton.tsx @@ -13,9 +13,12 @@ import { DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { useQuery } from "@tanstack/react-query"; -import { getUserQueryClient, getUserTeamsQueryClient } from "@/lib/queries"; +import { + getUserQueryClient, + getUserTeamsQueryClient, +} from "@/lib/functions/queries"; import { Skeleton } from "@/components/ui/skeleton"; -import { getInitials } from "@/lib/utils"; +import { getInitials } from "@/lib/functions/utils"; import { Plus, UserPlus } from "lucide-react"; import { Link } from "@tanstack/react-router"; import { authClient } from "@/lib/auth-client"; diff --git a/apps/web/src/components/shared/Navbar/navbar.tsx b/apps/web/src/components/shared/Navbar/navbar.tsx index 0b6bcd1..0c8a1d2 100644 --- a/apps/web/src/components/shared/Navbar/navbar.tsx +++ b/apps/web/src/components/shared/Navbar/navbar.tsx @@ -6,7 +6,7 @@ import { NavigationMenuItem, NavigationMenuList, } from "@/components/ui/navigation-menu"; -import { shouldShowNavbar } from "@/lib/utils"; +import { shouldShowNavbar } from "@/lib/functions/utils"; import { useLocation } from "@tanstack/react-router"; import { SignedIn, SignedOut } from "@daveyplate/better-auth-ui"; import { Button } from "@/components/ui/button"; diff --git a/apps/web/src/components/ui/alert-dialog.tsx b/apps/web/src/components/ui/alert-dialog.tsx index 9cc7ed9..78756bd 100644 --- a/apps/web/src/components/ui/alert-dialog.tsx +++ b/apps/web/src/components/ui/alert-dialog.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; -import { cn } from "@/lib/utils"; +import { cn } from "@/lib/functions/utils"; import { buttonVariants } from "@/components/ui/button"; function AlertDialog({ diff --git a/apps/web/src/components/ui/alert.tsx b/apps/web/src/components/ui/alert.tsx index c636967..c9af786 100644 --- a/apps/web/src/components/ui/alert.tsx +++ b/apps/web/src/components/ui/alert.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; -import { cn } from "@/lib/utils"; +import { cn } from "@/lib/functions/utils"; const alertVariants = cva( "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", diff --git a/apps/web/src/components/ui/avatar.tsx b/apps/web/src/components/ui/avatar.tsx index 3f19c82..56ea2a7 100644 --- a/apps/web/src/components/ui/avatar.tsx +++ b/apps/web/src/components/ui/avatar.tsx @@ -3,7 +3,7 @@ import * as React from "react"; import * as AvatarPrimitive from "@radix-ui/react-avatar"; -import { cn } from "@/lib/utils"; +import { cn } from "@/lib/functions/utils"; function Avatar({ className, diff --git a/apps/web/src/components/ui/breadcrumb.tsx b/apps/web/src/components/ui/breadcrumb.tsx index 9392996..a5bf33e 100644 --- a/apps/web/src/components/ui/breadcrumb.tsx +++ b/apps/web/src/components/ui/breadcrumb.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { Slot } from "@radix-ui/react-slot"; import { ChevronRight, MoreHorizontal } from "lucide-react"; -import { cn } from "@/lib/utils"; +import { cn } from "@/lib/functions/utils"; function Breadcrumb({ ...props }: React.ComponentProps<"nav">) { return