chore: quality of life improvements (#449)

This commit is contained in:
2022-04-13 22:16:34 +02:00
committed by GitHub
parent e916177569
commit c10817716e
34 changed files with 14038 additions and 11804 deletions

View File

@@ -1,10 +1,6 @@
import React from 'react';
import {
Routes,
Route,
useNavigate,
} from 'react-router-dom';
import { HomeFilled } from '@ant-design/icons';
import { Routes, Route, useNavigate } from 'react-router-dom';
import { HomeFilled } from '@ant-design/icons';
import { Layout, Button, Space } from 'antd';
import Intro from './screens/Intro';
@@ -19,14 +15,18 @@ const AppRouter: React.FC = () => {
return (
<>
<Space>
<Button
onClick={() => navigate('/')}
icon={<HomeFilled />}
>
<Button onClick={() => navigate('/')} icon={<HomeFilled />}>
Home
</Button>
</Space>
<Layout.Content style={{ padding: '25px', maxWidth: '800px', width: '100%', margin: 'auto' }}>
<Layout.Content
style={{
padding: '25px',
maxWidth: '800px',
width: '100%',
margin: 'auto',
}}
>
<Routes>
<Route path="/debug" element={<Debug />} />
<Route path="/welcome" element={<Welcome />} />
@@ -38,6 +38,6 @@ const AppRouter: React.FC = () => {
</Layout.Content>
</>
);
}
};
export default AppRouter;