diff --git a/src/App.tsx b/src/App.tsx
index 4dab8a1..ca2026b 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,25 +1,26 @@
import React from 'react';
import { hot } from 'react-hot-loader/root';
-import { Layout, Menu } from 'antd';
+import { Layout } from 'antd';
+import { HashRouter as Router } from 'react-router-dom';
import { GithubProvider } from './contexts/Github';
import { EncryptionProvider } from './contexts/Encryption';
import { DecryptionProvider } from './contexts/Decryption';
import AppRouter from './Router';
-const App: React.FC = () => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-);
+const App: React.FC = () => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
export default hot(App);
diff --git a/src/Router.tsx b/src/Router.tsx
index fcdd099..101e9ce 100644
--- a/src/Router.tsx
+++ b/src/Router.tsx
@@ -1,9 +1,11 @@
import React from 'react';
import {
- HashRouter as Router,
Switch,
Route,
+ useHistory,
} from 'react-router-dom';
+import { HomeFilled } from '@ant-design/icons';
+import { Layout, Button, Space } from 'antd';
import Intro from './screens/Intro';
import Encrypt from './screens/Encrypt';
@@ -12,29 +14,44 @@ import SetupKey from './screens/SetupKey';
import Welcome from './screens/Welcome';
import Debug from './screens/Debug';
-const AppRouter: React.FC = () => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-);
+const AppRouter: React.FC = () => {
+ const history = useHistory();
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+}
export default AppRouter;
diff --git a/src/screens/Intro.tsx b/src/screens/Intro.tsx
index 7e4d196..1b5e0ed 100644
--- a/src/screens/Intro.tsx
+++ b/src/screens/Intro.tsx
@@ -21,9 +21,8 @@ const Thumb: React.FC = ({
return (
}
+ type="link"
onClick={() => history.push(link)}
>
{title}