Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: workaround for future app dir routes
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars committed Dec 2, 2023
1 parent 44e4f4c commit 8e1ce63
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ export const generateMetadata = async () =>
(t) => t("orgs_page_description")
);

export default Page;
export default function AppPage() {
// @ts-expect-error FIXME Property 'Component' is incompatible with index signature
return <Page />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ export const generateMetadata = async ({ params }: { params: Params }) => {
);
};

export default Page;
export default function AppPage() {
// @ts-expect-error FIXME AppProps | undefined' does not satisfy the constraint 'PageProps'
return <Page />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ export const generateMetadata = async () =>
() => "Here you can add a new user."
);

export default Page;
export default function AppPage() {
// @ts-expect-error FIXME AppProps | undefined' does not satisfy the constraint 'PageProps'
return <Page />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ export const generateMetadata = async () =>
() => "A list of all the users in your account including their name, title, email and role."
);

export default Page;
export default function AppPage() {
// @ts-expect-error FIXME Property 'Component' is incompatible with index signature
return <Page />;
}

0 comments on commit 8e1ce63

Please sign in to comment.