generated from PoCInnovation/nft-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
34 lines (28 loc) · 814 Bytes
/
index.tsx
File metadata and controls
34 lines (28 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {BrowserRouter, Route, Routes} from "react-router-dom";
import styled from "styled-components";
import NotFound from "pages/NotFound";
import Hello from "pages/Hello";
import React from "react";
import Login from "pages/Connection/Login";
import Connection from "pages/Connection";
import Dashboard from "pages/Dashboard";
interface RouterPros {
}
const Router = ({}: RouterPros): JSX.Element => {
return (
<Container>
<BrowserRouter>
<Routes>
<Route path={'/hello'} element={<Hello />}/>
{/* This line must always remain the last line of the router! */}
<Route path={'*'} element={<NotFound />}/>
</Routes>
</BrowserRouter>
</Container>
)
};
const Container = styled.div`
height: 100vh;
width: 100vw;
`;
export default Router;