Skip to content

Commit cc83c89

Browse files
committed
Fix URL Collision
1 parent 4a03939 commit cc83c89

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/index.tsx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import ReactDOM from 'react-dom/client';
33
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
4-
import { BrowserRouter as Router, Route, Routes, Link } from "react-router-dom";
4+
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
55

66
import './style.scss';
77
import Home from "./pages/home/home.tsx";
@@ -18,7 +18,6 @@ function App() {
1818
<Route path="/news" element={<News />} />
1919
<Route path="/mods" element={<Mods />} />
2020
<Route path="/account" element={<Home />} />
21-
<Route path="*" element={<NoMatch />} />
2221
</Routes>
2322
</Router>
2423
);
@@ -42,20 +41,3 @@ function Header() {
4241
</nav>
4342
)
4443
}
45-
46-
function NoMatch() {
47-
return (
48-
<div className="page">
49-
<h1>Page doesnt exist!</h1>
50-
<p>
51-
<i>
52-
You find yourself in an empty room. There is nothing here but a few chairs and a table with food left out on it.
53-
Dusty hardwood floors, grimy paper thin walls, shattered glass from the windows nearby that somehow made its way across the room.
54-
The history of this place, gone in what feels like an instant, but you can see the beauty in the missing and gone.
55-
<br/><br/>
56-
You turn around and see yourself out. <b><Link className="homeButton" to="/">Lets go home</Link></b>.
57-
</i>
58-
</p>
59-
</div>
60-
);
61-
}

0 commit comments

Comments
 (0)