mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
sec
This commit is contained in:
13
src/App.tsx
13
src/App.tsx
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user