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:
1 parent
3eda7858c0
commit
542799e2cf
10 files changed
+35
-89
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user