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 bfa2613 commit 9956171
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions pages/mentors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,8 @@ import ResultView from "../components/ResultView";
import "@elastic/react-search-ui-views/lib/styles/styles.css";
import "../../styles/App.css";

import { useEffect } from "react";
import { Link } from "@mui/material";

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

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

// 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,
};
};

import ClearFacets from "../components/ResetButton";
import PersonalisationModal from "../components/PersonalisationModal";
import type { GetStaticProps, GetStaticPaths } from "next";

// This also gets called at build time
Expand Down

0 comments on commit 9956171

Please sign in to comment.