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 } }