mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
(squash) init
feat: filters, settings, backups fix: ts compile errors feat: new dashboard, webp previews and settings feat: use webp for pdfs feat: use webp fix: analyze resets old data fix: switch to corsproxy fix: switch to free cors fix: max upload limit fix: currency conversion feat: transaction export fix: currency conversion feat: refactor settings actions feat: new loader feat: README + LICENSE doc: update readme doc: update readme doc: update readme doc: update screenshots ci: bump prisma
This commit is contained in:
59
app/settings/layout.tsx
Normal file
59
app/settings/layout.tsx
Normal file
@@ -0,0 +1,59 @@
|
||||
import { SideNav } from "@/components/settings/side-nav"
|
||||
import { Separator } from "@/components/ui/separator"
|
||||
import { Metadata } from "next"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Settings",
|
||||
description: "Customize your settings here",
|
||||
}
|
||||
|
||||
const settingsCategories = [
|
||||
{
|
||||
title: "General",
|
||||
href: "/settings",
|
||||
},
|
||||
{
|
||||
title: "LLM settings",
|
||||
href: "/settings/llm",
|
||||
},
|
||||
{
|
||||
title: "Fields",
|
||||
href: "/settings/fields",
|
||||
},
|
||||
{
|
||||
title: "Categories",
|
||||
href: "/settings/categories",
|
||||
},
|
||||
{
|
||||
title: "Projects",
|
||||
href: "/settings/projects",
|
||||
},
|
||||
{
|
||||
title: "Currencies",
|
||||
href: "/settings/currencies",
|
||||
},
|
||||
{
|
||||
title: "Backups",
|
||||
href: "/settings/backups",
|
||||
},
|
||||
]
|
||||
|
||||
export default function SettingsLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<div className="hidden space-y-6 p-10 pb-16 md:block">
|
||||
<div className="space-y-0.5">
|
||||
<h2 className="text-2xl font-bold tracking-tight">Settings</h2>
|
||||
<p className="text-muted-foreground">Customize your settings here</p>
|
||||
</div>
|
||||
<Separator className="my-6" />
|
||||
<div className="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
|
||||
<aside className="-mx-4 lg:w-1/5">
|
||||
<SideNav items={settingsCategories} />
|
||||
</aside>
|
||||
<div className="flex w-full">{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user