Skip to content

Commit

Permalink
fix(mentors): switch to single wave layout
Browse files Browse the repository at this point in the history
  • Loading branch information
wei2912 authored and dabby9734 committed Jun 9, 2024
1 parent 9956171 commit 9271a2d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pages/mentors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,32 @@ export const getStaticPaths: GetStaticPaths = async () => {
};
};

import type { GetStaticProps, GetStaticPaths } from "next";
import { useRouter } from "next/router";

import ClearFacets from "../../components/ResetButton";
import PersonalisationModal from "../../components/PersonalisationModal";

// This also gets called at build time
export const getStaticProps: GetStaticProps = async (context) => {
// params contains the mentors page `id`.
// If the route is like /mentors/1, then params.id is 1
const tabID = context.params?.id;

// Pass post data to the page via props
return { props: {} };
};

// This function gets called at build time
export const getStaticPaths: GetStaticPaths = async () => {
const pathWithParams = [{ params: { id: "0" } }, { params: { id: "1" } }];

return {
paths: pathWithParams,
fallback: false,
};
};

const App = () => {
const WAVE = { waveId: 5, waveName: "Wave 2023" };

Expand Down

0 comments on commit 9271a2d

Please sign in to comment.