Rename home route to wish and create an empty home route

This commit is contained in:
memeriau
2021-12-26 18:33:12 +01:00
parent fe06b2d45c
commit 2e2442bb7a
7 changed files with 68 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ import { RouteConfig } from "react-router-config"
import App from "../app"
import AsyncHome, { loadData as loadHomeData } from "../pages/Home"
import AsyncWish, { loadData as loadWishData } from "../pages/Wish"
import AsyncVolunteerPage, { loadData as loadVolunteerPageData } from "../pages/VolunteerPage"
import Login from "../pages/Login"
import Register from "../pages/Register"
@@ -26,10 +27,15 @@ export default [
component: Login,
},
{
path: "/register",
path: "/home",
component: AsyncHome,
loadData: loadHomeData,
},
{
path: "/wish",
component: AsyncWish,
loadData: loadWishData,
},
{
component: NotFound,
},