diff --git a/app/javascript/src/App.tsx b/app/javascript/src/App.tsx index 9b1361d..0fe4ebf 100644 --- a/app/javascript/src/App.tsx +++ b/app/javascript/src/App.tsx @@ -1,27 +1,27 @@ +import type { FC } from "react"; import React from "react"; -import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; +import { BrowserRouter as Router } from "react-router-dom"; +import { Navbar } from "./components/Navbar"; +import { SideNav } from "./components/SideNav"; import { AppContext } from "./contexts/AppContext"; import { AuthProvider } from "./contexts/AuthProvider"; -import { Home } from "./pages"; +import { Routes } from "./Routes"; -export const App = () => { +export const App: FC = () => { return ( - - -
- - - -
Hello World!
-
- - - -
-
-
-
-
+ + + +
+ +
+ + +
+
+
+
+
); }; diff --git a/app/javascript/src/Routes.tsx b/app/javascript/src/Routes.tsx new file mode 100644 index 0000000..23528f3 --- /dev/null +++ b/app/javascript/src/Routes.tsx @@ -0,0 +1,15 @@ +import type { FC } from "react"; +import React from "react"; +import { Switch, Route } from "react-router-dom"; + +import { Home } from "./pages"; + +export const Routes: FC = () => { + return ( + + + + + + ); +};