This commit is contained in:
2020-08-22 14:56:41 +02:00
parent 79d89f266a
commit 26028445bf
16 changed files with 315 additions and 176 deletions

View File

@@ -3,16 +3,19 @@ import { hot } from 'react-hot-loader/root';
import { Layout } from 'antd';
import { GithubProvider } from './contexts/Github';
import { EncryptionProvider } from './contexts/Encryption';
import { DecryptionProvider } from './contexts/Decryption';
import AppRouter from './Router';
const App: React.FC = () => (
<GithubProvider>
<EncryptionProvider>
<Layout style={{minHeight:"100vh"}}>
<Layout.Content style={{ padding: '25px', maxWidth: '800px', width: '100%', margin: 'auto' }}>
<AppRouter/>
</Layout.Content>
</Layout>
<DecryptionProvider>
<Layout style={{minHeight:"100vh"}}>
<Layout.Content style={{ padding: '25px', maxWidth: '800px', width: '100%', margin: 'auto' }}>
<AppRouter/>
</Layout.Content>
</Layout>
</DecryptionProvider>
</EncryptionProvider>
</GithubProvider>
);