Skip to content
Snippets Groups Projects
Commit f2385758 authored by josh's avatar josh
Browse files

Added compatibility for SlotMachine.js

parent 935fdaae
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,9 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.8.4/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.8.4/umd/react-dom.production.min.js"></script>
<div id="react-root"></div>
<div id="root"></div>
<!--
This HTML file is a template.
......
......@@ -6,6 +6,7 @@ import { BrowserRouter as Router, Routes, Route}
import CoinFlip from "./pages/CoinFlip";
import {Nav} from "./components/Navbar/NavbarElements";
import Home from "./pages/Home";
import SlotMachine from "./pages/SlotMachine";
function App() {
return (
......@@ -14,7 +15,9 @@ function App() {
<Routes>
<Route exact path='/' exact element={<Home/>}/>
<Route exact path='/CoinFlip' exact element={<CoinFlip/>}/>
<Route exact path='/SlotMachine' exact element={<SlotMachine/>}/>
<Route exact path='/Home' exact element={<Home/>}/>
</Routes>
</Router>
);
......
......@@ -7,10 +7,11 @@ const Navbar = () => {
<>
<Nav>
<NavMenu>
<NavLink to="/Home" actievStyle>Home</NavLink>
<NavLink to="/Home" activeStyle>Home</NavLink>
<NavLink to="/CoinFlip" activeStyle>
CoinFlip
</NavLink>
<NavLink to="/SlotMachine" activeStyle>SlotMachine</NavLink>
{/*<NavLink to="/contact" activeStyle>*/}
{/* Contact Us*/}
{/*</NavLink>*/}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment