From 136e2bdae44fbfd01843a49242656df6339375dd Mon Sep 17 00:00:00 2001 From: Jordan Phillips Date: Sat, 11 May 2024 19:48:44 +1000 Subject: [PATCH] fix: nextjs unable to build --- .../app/(dashboard)/@dialog/(.)encode/[id]/page.tsx | 8 ++++---- app/src/app/(dashboard)/@dialog/default.tsx | 10 ++++++++-- app/src/app/(dashboard)/encode/[id]/page.tsx | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/src/app/(dashboard)/@dialog/(.)encode/[id]/page.tsx b/app/src/app/(dashboard)/@dialog/(.)encode/[id]/page.tsx index 509a3ce0..5f05383c 100644 --- a/app/src/app/(dashboard)/@dialog/(.)encode/[id]/page.tsx +++ b/app/src/app/(dashboard)/@dialog/(.)encode/[id]/page.tsx @@ -15,13 +15,13 @@ const QUERY = graphql` } ` -type EncodePageProps = React.PropsWithChildren & { +type EncodePageProps = { params: { - id: string + [x: string]: never } } -const EncodePage: React.FC = ({ children, params }) => { +const EncodePage: React.FC = ({ params }) => { const router = useRouter() const query = useLazyLoadQuery(QUERY, { @@ -38,7 +38,7 @@ const EncodePage: React.FC = ({ children, params }) => { return ( - {children} + Open ) } diff --git a/app/src/app/(dashboard)/@dialog/default.tsx b/app/src/app/(dashboard)/@dialog/default.tsx index 064fd6d1..6561c832 100644 --- a/app/src/app/(dashboard)/@dialog/default.tsx +++ b/app/src/app/(dashboard)/@dialog/default.tsx @@ -1,3 +1,9 @@ -const Default = () => null +type DialogDefaultProps = { + params: { + id: string + } +} -export default Default +const DialogDefault: React.FC = () => null + +export default DialogDefault diff --git a/app/src/app/(dashboard)/encode/[id]/page.tsx b/app/src/app/(dashboard)/encode/[id]/page.tsx index 0914a533..9b4921ac 100644 --- a/app/src/app/(dashboard)/encode/[id]/page.tsx +++ b/app/src/app/(dashboard)/encode/[id]/page.tsx @@ -30,9 +30,9 @@ const QUERY = graphql` } ` -type EncodePageProps = React.PropsWithChildren & { +type EncodePageProps = { params: { - id: string + [x: string]: never } }