Initial commit: NestJS NextJS pnpm monorepo
This commit is contained in:
commit
610dcf202b
175 files changed
+25172
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { manufacturerFindAll } from "../../../../actions/manufacturer.actions";
|
||||
import { categoryFindAll } from "../../../../actions/category.actions";
|
||||
import { ArticleMainForm } from "../../../../components/article/articleMain.form";
|
||||
import { articleCreate, articleFindAll } from "../../../../actions/article.actions";
|
||||
import Link from "next/link";
|
||||
import { sites } from "../../../../../../apps/frontend/_config/sites";
|
||||
//import { sites } from "@/";
|
||||
|
||||
|
||||
interface Props {
|
||||
|
||||
}
|
||||
|
||||
export default async function ArticlePage({ }: Props) {
|
||||
|
||||
const cats = await categoryFindAll();
|
||||
const manufacturer = await manufacturerFindAll();
|
||||
const artikel = await articleFindAll();
|
||||
|
||||
if(!manufacturer) return <div>Keine Hersteller gefunden</div>
|
||||
|
||||
return <>
|
||||
<ArticleMainForm categories={cats} manufacturer={manufacturer}></ArticleMainForm>
|
||||
<Link href={`${sites.article.url}`} className="text-sky-300">zurück</Link>
|
||||
|
||||
</>
|
||||
}
|
||||
Reference in new issue
Block a user