Skip to content

Commit

Permalink
Fix URL Collision
Browse files Browse the repository at this point in the history
  • Loading branch information
GirlInPurple committed Jul 29, 2024
1 parent 4a03939 commit cc83c89
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import ReactDOM from 'react-dom/client';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { BrowserRouter as Router, Route, Routes, Link } from "react-router-dom";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";

import './style.scss';
import Home from "./pages/home/home.tsx";
Expand All @@ -18,7 +18,6 @@ function App() {
<Route path="/news" element={<News />} />
<Route path="/mods" element={<Mods />} />
<Route path="/account" element={<Home />} />
<Route path="*" element={<NoMatch />} />
</Routes>
</Router>
);
Expand All @@ -42,20 +41,3 @@ function Header() {
</nav>
)
}

function NoMatch() {
return (
<div className="page">
<h1>Page doesnt exist!</h1>
<p>
<i>
You find yourself in an empty room. There is nothing here but a few chairs and a table with food left out on it.
Dusty hardwood floors, grimy paper thin walls, shattered glass from the windows nearby that somehow made its way across the room.
The history of this place, gone in what feels like an instant, but you can see the beauty in the missing and gone.
<br/><br/>
You turn around and see yourself out. <b><Link className="homeButton" to="/">Lets go home</Link></b>.
</i>
</p>
</div>
);
}

0 comments on commit cc83c89

Please sign in to comment.