Skip to content

Commit

Permalink
update hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-commits committed Apr 24, 2024
1 parent 26e8113 commit 5282944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { useMemo } from 'react'
import { Landing } from './features/Landing'
import { ThemeProvider, createTheme } from '@mui/material'
import { useSelector } from 'react-redux'
import { RouterProvider, createBrowserRouter } from 'react-router-dom'
import { RouterProvider, createBrowserRouter, createHashRouter } from 'react-router-dom'
import { Error } from './features/Error'
import { colors } from './utils'

const router = createBrowserRouter(
const router = createHashRouter(
[
{ path: '*', element: <Landing />, errorElement: <Error /> },
{ path: '/project/:projectId', element: <ScoreAnnotator />, errorElement: <Error /> },
Expand Down

0 comments on commit 5282944

Please sign in to comment.