From 1298182e863ec0edb419dd8e2522af68e62dad6c Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Thu, 17 Oct 2024 00:08:14 -0400 Subject: [PATCH] WIP Create site --- src/app/[orgId]/sites/[niceId]/components/create-site.tsx | 2 +- src/components/sidebar-nav.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/[orgId]/sites/[niceId]/components/create-site.tsx b/src/app/[orgId]/sites/[niceId]/components/create-site.tsx index 1faf3510..936506ec 100644 --- a/src/app/[orgId]/sites/[niceId]/components/create-site.tsx +++ b/src/app/[orgId]/sites/[niceId]/components/create-site.tsx @@ -45,7 +45,7 @@ const accountFormSchema = z.object({ type AccountFormValues = z.infer; const defaultValues: Partial = { - name: "Wombat", + name: "", method: "wg" }; diff --git a/src/components/sidebar-nav.tsx b/src/components/sidebar-nav.tsx index 3b6a82ee..eee5cf6d 100644 --- a/src/components/sidebar-nav.tsx +++ b/src/components/sidebar-nav.tsx @@ -35,7 +35,7 @@ export function SidebarNav({ className, items, disabled = false, ...props }: Sid href={item.href.replace("{orgId}", orgId).replace("{niceId}", niceId).replace("{resourceId}", resourceId)} className={cn( buttonVariants({ variant: "ghost" }), - pathname === item.href.replace("{orgId}", orgId).replace("{niceId}", niceId).replace("{resourceId}", resourceId) + pathname === item.href.replace("{orgId}", orgId).replace("{niceId}", niceId).replace("{resourceId}", resourceId) && !pathname.includes("create") ? "bg-muted hover:bg-muted" : "hover:bg-transparent hover:underline", "justify-start",