Skip to content

Commit

Permalink
feat(project): remove hash routing
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLantukh committed Jun 29, 2023
1 parent a83bfe9 commit 91acf86
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
import { BrowserRouter, HashRouter } from 'react-router-dom';
import { BrowserRouter } from 'react-router-dom';

import QueryProvider from '#src/containers/QueryProvider/QueryProvider';
import '#src/screenMapping';
Expand Down Expand Up @@ -38,13 +38,11 @@ export default function App() {
);
}

const Router = import.meta.env.APP_PUBLIC_GITHUB_PAGES ? HashRouter : BrowserRouter;

return (
<QueryProvider>
<Router>
<BrowserRouter>
<Root />
</Router>
</BrowserRouter>
</QueryProvider>
);
}

0 comments on commit 91acf86

Please sign in to comment.