Преглед на файлове

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

Milo Schwartz преди 8 месеца
родител
ревизия
1bc67c191b
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/app/[orgId]/sites/[niceId]/components/create-site.tsx
  2. 1 1
      src/components/sidebar-nav.tsx

+ 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>;
 type AccountFormValues = z.infer<typeof accountFormSchema>;
 
 
 const defaultValues: Partial<AccountFormValues> = {
 const defaultValues: Partial<AccountFormValues> = {
-    name: "Wombat",
+    name: "",
     method: "wg"
     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)}
                     href={item.href.replace("{orgId}", orgId).replace("{niceId}", niceId).replace("{resourceId}", resourceId)}
                     className={cn(
                     className={cn(
                         buttonVariants({ variant: "ghost" }),
                         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"
                             ? "bg-muted hover:bg-muted"
                             : "hover:bg-transparent hover:underline",
                             : "hover:bg-transparent hover:underline",
                         "justify-start",
                         "justify-start",