Fixed type errors in nextJS apps, added Docker files
Co-authored-by: Nicolas <nocnico@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { prisma } from "@repo/db";
|
||||
import { KeywordForm } from "../_components/Form";
|
||||
|
||||
export default async ({ params }: { params: Promise<{ id: string }> }) => {
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
const keyword = await prisma.keyword.findUnique({
|
||||
where: {
|
||||
@@ -10,4 +10,4 @@ export default async ({ params }: { params: Promise<{ id: string }> }) => {
|
||||
});
|
||||
if (!keyword) return <div>Station not found</div>;
|
||||
return <KeywordForm keyword={keyword} />;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user