mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 13:56:29 +02:00
Add notifications to home page
This commit is contained in:
@@ -2,11 +2,11 @@ import { RouteConfig } from "react-router-config"
|
||||
|
||||
import App from "../app"
|
||||
import AsyncHome, { loadData as loadHomeData } from "../pages/Home"
|
||||
import AsyncPreRegisterPage, { loadData as loadPreRegisterPage } from "../pages/PreRegister"
|
||||
import AsyncWish, { loadData as loadWishData } from "../pages/Wish"
|
||||
import AsyncVolunteerPage, { loadData as loadVolunteerPageData } from "../pages/VolunteerPage"
|
||||
import Login from "../pages/Login"
|
||||
import Forgot from "../pages/Forgot"
|
||||
import Register from "../pages/Register"
|
||||
import NotFound from "../pages/NotFound"
|
||||
|
||||
export default [
|
||||
@@ -16,7 +16,13 @@ export default [
|
||||
{
|
||||
path: "/",
|
||||
exact: true,
|
||||
component: Register,
|
||||
component: AsyncHome,
|
||||
loadData: loadHomeData,
|
||||
},
|
||||
{
|
||||
path: "/preRegister",
|
||||
component: AsyncPreRegisterPage,
|
||||
loadData: loadPreRegisterPage,
|
||||
},
|
||||
{
|
||||
path: "/VolunteerPage/:id",
|
||||
@@ -31,11 +37,6 @@ export default [
|
||||
path: "/forgot",
|
||||
component: Forgot,
|
||||
},
|
||||
{
|
||||
path: "/home",
|
||||
component: AsyncHome,
|
||||
loadData: loadHomeData,
|
||||
},
|
||||
{
|
||||
path: "/wish",
|
||||
component: AsyncWish,
|
||||
|
Reference in New Issue
Block a user