From b8f2d002d2eb62658709a7957b0160f564e33605 Mon Sep 17 00:00:00 2001 From: Patryk Kalinowski Date: Wed, 20 Dec 2023 18:08:50 +0100 Subject: [PATCH] Fix router (#6) --- src/main.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index b556f46..7360833 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -2,7 +2,7 @@ import React from 'react' import ReactDOM from 'react-dom/client' import '@0xsequence/design-system/styles.css' import { ThemeProvider } from '@0xsequence/design-system' -import {createBrowserRouter, RouterProvider} from 'react-router-dom' +import {createHashRouter, RouterProvider} from 'react-router-dom' import Login from './Login.tsx' import { GoogleOAuthProvider } from '@react-oauth/google' @@ -21,7 +21,7 @@ export const sequence = new Sequence({ key: SEQUENCE_API_KEY, }, defaults.TEMPLATE_NEXT) -export const router = createBrowserRouter([ +export const router = createHashRouter([ { path: '/login', element: