mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
chore: quality of life improvements (#449)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user