mirror of
https://github.com/rjNemo/melon_frontend
synced 2026-06-12 05:16:46 +00:00
24 lines
577 B
TypeScript
24 lines
577 B
TypeScript
import { Button, Row } from 'antd';
|
|
import { useHistory } from 'react-router-dom';
|
|
import { withLayout } from '../layouts/main';
|
|
|
|
function HomePage() {
|
|
// Hooks
|
|
const history = useHistory();
|
|
|
|
return (
|
|
<>
|
|
<h1>Rent it Like a Pro</h1>
|
|
<Row>
|
|
<Button type="primary" size="large" onClick={() => history.push('/bills/new')}>
|
|
Add Bill
|
|
</Button>
|
|
<Button type="default" size="large" onClick={() => history.push('/reports')}>
|
|
Edit Report
|
|
</Button>
|
|
</Row>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default withLayout(HomePage);
|