18 |
19 | {router.pathname !== "/" && }
20 |
21 |
22 |
23 |
24 |
25 | {router.pathname !== "/" && }
26 |
27 |
28 | >
29 | );
30 | }
31 |
32 | export default MyApp;
33 |
--------------------------------------------------------------------------------
/components/popupselect/PopupSelect.tsx:
--------------------------------------------------------------------------------
1 | import { ChangeEventHandler, FormEventHandler } from "react";
2 | import styles from "./PopupSelect.module.css";
3 | import { Day } from "../../utils/types";
4 |
5 | export type PopupSelectProps = {
6 | days: Day[];
7 | label: string;
8 | buttonLabel: string;
9 | handleSubmit: FormEventHandler