diff --git a/src/components/ui/App/App.tsx b/src/components/ui/App/App.tsx index 7b05e32..e091ef3 100644 --- a/src/components/ui/App/App.tsx +++ b/src/components/ui/App/App.tsx @@ -1,12 +1,13 @@ import React from 'react'; -import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; +import { Route, Router, Switch } from 'react-router-dom'; +import { history } from '../../../router'; import { LoginRoute } from '../../routes/LoginRoute/LoginRoute'; import { MainRoute } from '../../routes/MainRoute/MainRoute'; import { PrivateRoute } from '../../routes/PrivateRoute/PrivateRoute'; export const App: React.FunctionComponent = () => { return ( - + diff --git a/src/router/index.ts b/src/router/index.ts index 5aafdbd..b9adf23 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,2 +1,2 @@ -import { createBrowserHistory } from 'history'; -export const history = createBrowserHistory(); +import { createHashHistory } from 'history'; +export const history = createHashHistory();