updates
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { GeneralPreferencesForm } from "@/modules/settings/configurations/general-preferences-form"
|
||||
|
||||
export default function GeneralPreferencesPage() {
|
||||
return <GeneralPreferencesForm />
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
"use client"
|
||||
|
||||
import Link from "next/link"
|
||||
import { usePathname } from "next/navigation"
|
||||
import { cn } from "@/shared/lib/utils"
|
||||
import DashboardPage from "@/base/components/layout/dashboard/dashboard-page"
|
||||
|
||||
const TABS = [
|
||||
{ label: "Sales", href: "/settings/configurations/preferences/sales" },
|
||||
{ label: "Purchases", href: "/settings/configurations/preferences/purchases" },
|
||||
{ label: "General", href: "/settings/configurations/preferences/general" },
|
||||
]
|
||||
|
||||
export default function ConfigurationsLayout({ children }: { children: React.ReactNode }) {
|
||||
const pathname = usePathname()
|
||||
|
||||
return (
|
||||
<DashboardPage headerProps={{ title: "Configurations" }}>
|
||||
<div className="space-y-6">
|
||||
<nav className="flex gap-1 border-b">
|
||||
{TABS.map((tab) => (
|
||||
<Link
|
||||
key={tab.href}
|
||||
href={tab.href}
|
||||
className={cn(
|
||||
"px-4 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",
|
||||
pathname === tab.href
|
||||
? "border-primary text-primary"
|
||||
: "border-transparent text-muted-foreground hover:text-foreground"
|
||||
)}
|
||||
>
|
||||
{tab.label}
|
||||
</Link>
|
||||
))}
|
||||
</nav>
|
||||
<div className="max-w-xl">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</DashboardPage>
|
||||
)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { PurchaseConfigForm } from "@/modules/settings/configurations/purchase-config-form"
|
||||
|
||||
export default function PurchasesConfigPage() {
|
||||
return <PurchaseConfigForm />
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { SalesConfigForm } from "@/modules/settings/configurations/sales-config-form"
|
||||
|
||||
export default function SalesConfigPage() {
|
||||
return <SalesConfigForm />
|
||||
}
|
||||
Reference in New Issue
Block a user