Skip to content

Commit

Permalink
switch to hash router to avoid 404 bug (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ann-kilzer authored Jun 15, 2024
1 parent 6eca2e3 commit 7db8a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from 'react'
import {
createBrowserRouter,
createHashRouter,
RouterProvider,
} from 'react-router-dom'
import ThemePreview from './ThemePreview/ThemePreview'
Expand All @@ -9,7 +9,7 @@ import BaseLayout from './BaseLayout'
import NotFound from './NotFound/NotFound'
import CodeOfConduct from './CodeOfConduct/CodeOfConduct'

const browserRouter = createBrowserRouter([{
const browserRouter = createHashRouter([{
element: <BaseLayout />,
children: [
{
Expand Down

0 comments on commit 7db8a69

Please sign in to comment.