|
@@ -1,6 +1,5 @@
|
|
import React from "react";
|
|
import React from "react";
|
|
-import { MemoryRouter } from "react-router";
|
|
|
|
-import { Switch, Route } from "react-router-dom";
|
|
|
|
|
|
+import { BrowserRouter, Switch, Route } from "react-router-dom";
|
|
import {
|
|
import {
|
|
AppBar,
|
|
AppBar,
|
|
Calendar,
|
|
Calendar,
|
|
@@ -36,7 +35,7 @@ const Routes = (props: IProps) => {
|
|
|
|
|
|
return (
|
|
return (
|
|
<div>
|
|
<div>
|
|
- <MemoryRouter>
|
|
|
|
|
|
+ <BrowserRouter>
|
|
<div style={{ flexGrow: 1 }}>
|
|
<div style={{ flexGrow: 1 }}>
|
|
<AppBar />
|
|
<AppBar />
|
|
</div>
|
|
</div>
|
|
@@ -125,7 +124,7 @@ const Routes = (props: IProps) => {
|
|
<Route path="/" render={() => <Dashboard {...props} />} />
|
|
<Route path="/" render={() => <Dashboard {...props} />} />
|
|
</Switch>
|
|
</Switch>
|
|
</div>
|
|
</div>
|
|
- </MemoryRouter>
|
|
|
|
|
|
+ </BrowserRouter>
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
};
|
|
};
|