summaryrefslogtreecommitdiff
path: root/src/popup/js/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/popup/js/App.tsx')
-rw-r--r--src/popup/js/App.tsx17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/popup/js/App.tsx b/src/popup/js/App.tsx
index cc9d6c3..26fdafc 100644
--- a/src/popup/js/App.tsx
+++ b/src/popup/js/App.tsx
@@ -1,4 +1,5 @@
import * as React from "react";
+import { HashRouter } from "react-router-dom";
import { Switch, Route } from "react-router-dom";
import { Index } from "./pages/Index";
@@ -7,14 +8,16 @@ import { Users } from "./pages/Users";
export class App extends React.Component<any, any> {
render() {
return (
- <div>
- <h1 className="header text-center">KSJS</h1>
+ <HashRouter>
+ <div>
+ <h1 className="header">KPJS</h1>
- <Switch>
- <Route exact path="/" component={Index} />
- <Route path="/users" component={Users} />
- </Switch>
- </div>
+ <Switch>
+ <Route exact path="/" component={Index} />
+ <Route path="/users" component={Users} />
+ </Switch>
+ </div>
+ </HashRouter>
);
}
}