Initial commit: NestJS NextJS pnpm monorepo

This commit is contained in:
Marco_205 committed 2026-10-12 07:20:37 +00:00
commit 610dcf202b
175 files changed
+25172

No files matched your search

@@ -0,0 +1,33 @@
import Link from "next/link";
import { sites } from "../../../../_config/sites";
import { CategoryForm } from "../../../../components/category/categroy.form";
import { categoryFindById } from "../../../../actions/category.actions";
interface PageProps {
params: Promise<{ id: string }>
}
export default async function CatergoryUpdate({ params }: PageProps) {
const { id } = await params
const cat = await categoryFindById(id);
if(!cat._id) {
return (<div>
<div>Kategorie nicht gefunden</div>
<div>
<Link className="cursor-pointer p-2 border-1 border-sky-500 bg-sky-500 text-white rounded-full m-1 hover:bg-sky-700 " href={sites.category.url}>zurück</Link>
</div>
</div>)
}
return (
<div className="h-screen">
<CategoryForm initData={cat} ></CategoryForm>
<Link className="cursor-pointer p-2 border-1 border-sky-500 bg-sky-500 text-white rounded-full m-1 hover:bg-sky-700 " href={sites.category.url}>zurück</Link>
</div>
);
}