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,26 @@
|
||||
import { manufacturerFindAll } from "../../../actions/manufacturer.actions";
|
||||
import { articleFindAll } from "../../../actions/article.actions";
|
||||
import Link from "next/link";
|
||||
import { sites } from "../../../../../apps/frontend/_config/sites";
|
||||
import { ArticleList } from "../../../components/article/articleList";
|
||||
import { Icon, CirclePlus } from "lucide-react";
|
||||
|
||||
interface Props { }
|
||||
|
||||
export default async function ArticlePage({ }: Props) {
|
||||
|
||||
|
||||
const manufacturer = await manufacturerFindAll();
|
||||
const artikel = await articleFindAll();
|
||||
|
||||
if (!manufacturer) return <div>Keine Hersteller gefunden</div>
|
||||
|
||||
return <div className="p-4 mb-4">
|
||||
<div className="">
|
||||
<Link href={`${sites.article.new.url}`} className="text-sky-300 text-black"><CirclePlus color="green" />neu </Link>
|
||||
</div>
|
||||
<ArticleList articles={artikel}></ArticleList>
|
||||
<Link href={`${sites.main.url}`} className="text-sky-300">zurück</Link>
|
||||
</div>
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user