aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/Landing/GettingStarted.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Landing/GettingStarted.jsx')
-rw-r--r--src/views/Landing/GettingStarted.jsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/views/Landing/GettingStarted.jsx b/src/views/Landing/GettingStarted.jsx
index 44aa532..ede365d 100644
--- a/src/views/Landing/GettingStarted.jsx
+++ b/src/views/Landing/GettingStarted.jsx
@@ -7,6 +7,7 @@ import {
Storage,
} from '@mui/icons-material'
import { Box, Button, Card, Grid, styled, Typography } from '@mui/joy'
+import { useNavigate } from 'react-router-dom'
const IconContainer = styled('div')({
display: 'flex',
alignItems: 'center',
@@ -65,6 +66,7 @@ function StartOptionCard({ icon: Icon, title, description, button, index }) {
}
const GettingStarted = () => {
+ const navigate = useNavigate()
const information = [
{
title: 'Donetick Web',
@@ -72,7 +74,14 @@ const GettingStarted = () => {
description:
'The easiest way! just create account and start using DoneTick',
button: (
- <Button size='lg' fullWidth startDecorator={<AutoAwesome />}>
+ <Button
+ size='lg'
+ fullWidth
+ startDecorator={<AutoAwesome />}
+ onClick={() => {
+ navigate('/my/chores')
+ }}
+ >
Start Now!
</Button>
),