This commit is contained in:
2020-08-19 22:55:44 +02:00
parent 312c8754bc
commit b84aa3db45
18 changed files with 1184 additions and 146 deletions

24
src/Router.tsx Normal file
View File

@@ -0,0 +1,24 @@
import React from 'react';
import {
HashRouter as Router,
Switch,
Route,
} from 'react-router-dom';
import Encrypt from './screens/Encrypt';
import Debug from './screens/Debug';
const AppRouter: React.FC = () => (
<Router>
<Switch>
<Route path="/debug">
<Debug />
</Route>
<Route path="/">
<Encrypt />
</Route>
</Switch>
</Router>
);
export default AppRouter;