diff --git a/src/ui/routes/HomeRoute.tsx b/src/ui/routes/HomeRoute.tsx new file mode 100644 index 0000000..a7ad111 --- /dev/null +++ b/src/ui/routes/HomeRoute.tsx @@ -0,0 +1,3 @@ +export function HomeRoute() { + return

Welcome to Comunic Console!

; +} diff --git a/src/ui/routes/MainRoute.tsx b/src/ui/routes/MainRoute.tsx index 0d93c4f..8f0cdd5 100644 --- a/src/ui/routes/MainRoute.tsx +++ b/src/ui/routes/MainRoute.tsx @@ -25,6 +25,9 @@ import React from "react"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import { AccountHelper } from "../../helpers/AccountHelper"; import CloseSharpIcon from "@material-ui/icons/CloseSharp"; +import { NotFoundRoute } from "./NotFoundRoute"; +import { HomeRoute } from "./HomeRoute"; +import { Home, Person } from "@material-ui/icons"; const useStyles = makeStyles((theme) => ({ root: { @@ -83,21 +86,15 @@ function Menu() { - + - + - + - - - - - - - + @@ -153,14 +150,14 @@ export function MainRoute() { -
+
+ + + + -

yes

-

yes

-

yes

-

yes

-

yes

Not found +
diff --git a/src/ui/routes/NotFoundRoute.tsx b/src/ui/routes/NotFoundRoute.tsx new file mode 100644 index 0000000..0dd4972 --- /dev/null +++ b/src/ui/routes/NotFoundRoute.tsx @@ -0,0 +1,24 @@ +/** + * 404 Error page + * + * @author Pierre Hubert + */ + +import { Typography } from "@material-ui/core"; + +export function NotFoundRoute() { + return ( +
+ + 404 Not found + +
+ ); +}