Skip to content

Commit

Permalink
Revert back to browser router.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Jan 21, 2024
1 parent 2b9e04a commit aeb5ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Etherpad Scanner" />
<link rel="shortcut icon" href="/logo.png">
<title>Etherpad Scanner</title>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import {createHashRouter, createRoutesFromElements, Navigate, Route} from "react-router-dom";
import {createBrowserRouter, createRoutesFromElements, Navigate, Route} from "react-router-dom";
import {RouterProvider} from "react-router";
import {Statistics} from "@/pages/statistics.tsx";
import axios from "axios";

const router = createHashRouter(createRoutesFromElements(
<Route path="/" element={<App/>}>
const router = createBrowserRouter(createRoutesFromElements(
<Route path={import.meta.env.BASE_URL} element={<App/>}>
<Route index element={<Navigate to="/statistics"/>}/>
<Route path="/statistics" element={<Statistics/>}/>
</Route>
Expand Down

0 comments on commit aeb5ff2

Please sign in to comment.