Skip to content

Commit

Permalink
fix: nextjs unable to build
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILLIPS71 committed May 11, 2024
1 parent 3380b3a commit 136e2bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/src/app/(dashboard)/@dialog/(.)encode/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ const QUERY = graphql`
}
`

type EncodePageProps = React.PropsWithChildren & {
type EncodePageProps = {
params: {
id: string
[x: string]: never
}
}

const EncodePage: React.FC<EncodePageProps> = ({ children, params }) => {
const EncodePage: React.FC<EncodePageProps> = ({ params }) => {
const router = useRouter()

const query = useLazyLoadQuery<page_EncodedDialog_Query>(QUERY, {
Expand All @@ -38,7 +38,7 @@ const EncodePage: React.FC<EncodePageProps> = ({ children, params }) => {

return (
<EncodeDialog isOpen $key={query.encode} onOpenChange={router.back}>
{children}
Open
</EncodeDialog>
)
}
Expand Down
10 changes: 8 additions & 2 deletions app/src/app/(dashboard)/@dialog/default.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
const Default = () => null
type DialogDefaultProps = {
params: {
id: string
}
}

export default Default
const DialogDefault: React.FC<DialogDefaultProps> = () => null

export default DialogDefault
4 changes: 2 additions & 2 deletions app/src/app/(dashboard)/encode/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const QUERY = graphql`
}
`

type EncodePageProps = React.PropsWithChildren & {
type EncodePageProps = {
params: {
id: string
[x: string]: never
}
}

Expand Down

0 comments on commit 136e2bd

Please sign in to comment.