Commit e2db427d authored by David Haynes's avatar David Haynes 🙆
Browse files

Add in the default page to the rendering

parent b1c61f3c
Pipeline #3553 passed with stage
in 1 minute and 8 seconds
import React from "react";
const DebugCRUD = () => (
<div>
<h1>Debug CRUD Page</h1>
</div>
);
export default DebugCRUD;
import HomePage from "./HomePage"; import HomePage from "./HomePage";
import AboutPage from "./AboutPage"; import AboutPage from "./AboutPage";
import DhaynesPage from "./DhaynesPage"; import DhaynesPage from "./DhaynesPage";
import DebugCRUD from "./DebugCRUD";
export { HomePage, AboutPage, DhaynesPage }; export { HomePage, AboutPage, DhaynesPage, DebugCRUD };
import { AuthButton } from "./Molecules"; import { AuthButton } from "./Molecules";
import { NavBar } from "./Organisms"; import { NavBar } from "./Organisms";
import { HomePage, AboutPage, DhaynesPage } from "./Pages"; import { HomePage, AboutPage, DhaynesPage, DebugCRUD } from "./Pages";
import { PageTemplate } from "./Templates"; import { PageTemplate } from "./Templates";
export { export {
...@@ -12,6 +12,7 @@ export { ...@@ -12,6 +12,7 @@ export {
HomePage, HomePage,
AboutPage, AboutPage,
DhaynesPage, DhaynesPage,
DebugCRUD,
//Templates //Templates
PageTemplate PageTemplate
}; };
import React from "react"; import React from "react";
import { Route } from "react-router-dom"; import { Route } from "react-router-dom";
import { HomePage, AboutPage, DhaynesPage, DebugCRUD } from "Components";
import { HomePage, AboutPage, DhaynesPage } from "Components";
const Routes = () => ( const Routes = () => (
<div> <div>
<Route path="/" exact component={HomePage} /> <Route path="/" exact component={HomePage} />
<Route path="/dhaynes" component={DhaynesPage} /> <Route path="/dhaynes" component={DhaynesPage} />
<Route path="/about" component={AboutPage} /> <Route path="/about" component={AboutPage} />
<Route path="/debug" component={DebugCRUD} />
</div> </div>
); );
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
/> />
<meta name="theme-color" content="#006633" /> <meta name="theme-color" content="#006633" />
<meta name="description" content="University-branded URL shortening" /> <meta name="description" content="University-branded URL shortening" />
<title>Welcome &bull; SRCT Go</title> <title>SRCT Go 3</title>
</head> </head>
<body> <body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment