Prechádzať zdrojové kódy

Merge branch 'main' of https://github.com/fosrl/pangolin

Milo Schwartz 8 mesiacov pred
rodič
commit
1bc67c191b

+ 1 - 1
src/app/[orgId]/sites/[niceId]/components/create-site.tsx

@@ -45,7 +45,7 @@ const accountFormSchema = z.object({
 type AccountFormValues = z.infer<typeof accountFormSchema>;
 
 const defaultValues: Partial<AccountFormValues> = {
-    name: "Wombat",
+    name: "",
     method: "wg"
 };
 

+ 1 - 1
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",