diff --git a/src/pages/DayWishes/DayWishes.tsx b/src/pages/DayWishes/DayWishes.tsx deleted file mode 100644 index 645760b..0000000 --- a/src/pages/DayWishes/DayWishes.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { FC, memo } from "react" -import { RouteComponentProps } from "react-router-dom" -import { useSelector } from "react-redux" - -import { AppThunk } from "../../store" -import { fetchVolunteerDayWishesSetIfNeed } from "../../store/volunteerDayWishesSet" -import { selectUserJwtToken } from "../../store/auth" -import DayWishesForm from "../../components/VolunteerBoard/DayWishesForm/DayWishesForm" -import DDayInformations from "../../components/VolunteerBoard/ParticipationDetailsForm/ParticipationDetailsForm" -import styles from "./styles.module.scss" - -export type Props = RouteComponentProps - -const HomePage: FC = (): JSX.Element => { - const jwtToken = useSelector(selectUserJwtToken) - - if (jwtToken === undefined) return

Loading...

- if (jwtToken) { - return ( -
-
- - -
-
- ) - } - return
Besoin d'être identifié
-} - -// Fetch server-side data here -export const loadData = (): AppThunk[] => [fetchVolunteerDayWishesSetIfNeed()] - -export default memo(HomePage) diff --git a/src/pages/DayWishes/index.tsx b/src/pages/DayWishes/index.tsx deleted file mode 100755 index cfa70c9..0000000 --- a/src/pages/DayWishes/index.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import loadable from "@loadable/component" - -import { Loading, ErrorBoundary } from "../../components" -import { Props, loadData } from "./DayWishes" - -const HomePage = loadable(() => import("./DayWishes"), { - fallback: , -}) - -export default (props: Props): JSX.Element => ( - - - -) - -export { loadData } diff --git a/src/pages/DayWishes/styles.module.scss b/src/pages/DayWishes/styles.module.scss deleted file mode 100755 index a870e16..0000000 --- a/src/pages/DayWishes/styles.module.scss +++ /dev/null @@ -1,9 +0,0 @@ -@import "../../theme/mixins"; - -.dayWishPage { - @include page-wrapper-center; -} - -.dayWishContent { - @include page-content-wrapper(800px); -} diff --git a/src/routes/index.ts b/src/routes/index.ts index edf66ed..3888761 100755 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -6,7 +6,6 @@ import AsyncAnnouncements, { loadData as loadAnnouncementsData } from "../pages/ import AsyncPreRegisterPage, { loadData as loadPreRegisterPage } from "../pages/PreRegister" import AsyncTeams, { loadData as loadTeamsData } from "../pages/Teams" import AsyncBoard, { loadData as loadBoardData } from "../pages/Board" -import AsyncDayWishes, { loadData as loadDayWishesData } from "../pages/DayWishes" import AsyncWish, { loadData as loadWishData } from "../pages/Wish" import AsyncVolunteerPage, { loadData as loadVolunteerPageData } from "../pages/VolunteerPage" import Login from "../pages/Login" @@ -51,11 +50,6 @@ export default [ component: AsyncTeams, loadData: loadTeamsData, }, - { - path: "/dayWishes", - component: AsyncDayWishes, - loadData: loadDayWishesData, - }, { path: "/wish", component: AsyncWish,