chore: app router - /bookings status page (#18183)

* chore: app router - /bookings page

* remove env vars

* fix

* Update middleware.ts

* revert unneeded change

* refactor for the better

* fix
This commit is contained in:
Benny Joo authored and GitHub committed 2024-12-23 10:12:22 +01:00
1 parent 3eda7858c0
commit 542799e2cf
10 files changed
+35 -89

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
import type { GetStaticPaths } from "next";
import PageWrapper from "@components/PageWrapper";
import { validStatuses } from "~/bookings/lib/validStatuses";
import BookingsListingView from "~/bookings/views/bookings-listing-view";
export { getStaticProps } from "~/bookings/views/bookings-listing-view.getStaticProps";
const BookingsListingPage = new Proxy<{
(): JSX.Element;
PageWrapper?: typeof PageWrapper;
}>(BookingsListingView, {});
BookingsListingPage.PageWrapper = PageWrapper;
export const getStaticPaths: GetStaticPaths = () => {
return {
paths: validStatuses.map((status) => ({
params: { status },
locale: "en",
})),
fallback: "blocking",
};
};
export default BookingsListingPage;