sigit.io/src/pages/home/index.tsx

26 lines
588 B
TypeScript
Raw Normal View History

2024-05-14 14:27:05 +05:00
import { Box, Button } from '@mui/material'
2024-04-08 18:05:28 +05:00
import styles from './style.module.scss'
2024-05-14 14:27:05 +05:00
import { useNavigate } from 'react-router-dom'
import { appPrivateRoutes } from '../../routes'
export const HomePage = () => {
2024-05-14 14:27:05 +05:00
const navigate = useNavigate()
return (
2024-05-14 14:27:05 +05:00
<Box className={styles.container}>
<Button
2024-05-15 13:41:55 +05:00
onClick={() => navigate(appPrivateRoutes.create)}
2024-05-14 14:27:05 +05:00
variant='contained'
>
2024-05-15 13:41:55 +05:00
Create
2024-05-14 14:27:05 +05:00
</Button>
2024-05-14 23:55:16 +05:00
<Button
2024-05-15 16:11:57 +05:00
onClick={() => navigate(appPrivateRoutes.sign)}
2024-05-14 23:55:16 +05:00
variant='contained'
>
2024-05-15 16:11:57 +05:00
Sign
2024-05-14 23:55:16 +05:00
</Button>
2024-05-14 14:27:05 +05:00
</Box>
)
}