|
1 | 1 | import React from "react"; |
2 | | -import { Link } from "react-router-dom"; |
3 | | -import { Button, Typography } from "@mui/material"; |
4 | | -import FileDownloadIcon from '@mui/icons-material/FileDownload'; |
5 | | -import DeleteIcon from '@mui/icons-material/Delete'; |
| 2 | +import { Typography } from "@mui/material"; |
6 | 3 | import Layout from "@/ui/shared-components/Layout"; |
7 | 4 | import AppScreenWrapperContainer from "@/ui/shared-components/app-screen-wrapper/AppScreenWrapperContainer"; |
8 | 5 | import { VBox, HBox } from "@/ui/shared-components/LayoutBoxes"; |
| 6 | +import TileButton from "@/ui/shared-components/buttons/TileButton"; |
| 7 | +import RegularButton from "@/ui/shared-components/buttons/RegularButton"; |
9 | 8 |
|
10 | 9 |
|
11 | 10 | const InfoScreenReturningUser = ({ t, isLoading, exportProfile, deleteExistingProfile }) => { |
12 | | - return ( |
| 11 | + return ( |
13 | 12 | <Layout isApp={true} logo={false}> |
14 | 13 | <AppScreenWrapperContainer isLoading={isLoading} home={true} backTarget={-1}> |
15 | 14 | <VBox sx={{ gap: 8 }}> |
16 | 15 | <Typography variant="h1">{t('app.welcomeBack.header')}</Typography> |
17 | 16 | <Typography variant="body1">{t("app.welcomeBack.text")}</Typography> |
18 | 17 | <HBox sx={{ flexWrap: 'wrap' }}> |
19 | | - <HBox> |
20 | | - <Button |
21 | | - variant="text" |
22 | | - sx={{ |
23 | | - padding: "32px 32px", |
24 | | - boxShadow: '0px 1px 2px rgba(0, 0, 0, 0.25)', |
25 | | - '&:hover': { backgroundColor: 'yellow.main' }, |
26 | | - }} |
27 | | - component={Link} |
28 | | - to={'/onboarding-choice'} |
29 | | - > |
30 | | - <HBox sx={{ alignItems: 'center' }}> |
31 | | - <VBox sx={{ alignItems: 'flex-start' }}> |
32 | | - <Typography variant="h6">{t("app.welcomeBack.yesBtnTitle")}</Typography> |
33 | | - <Typography variant="body1" sx={{ textAlign: 'left' }}>{t("app.welcomeBack.yesBtnText")}</Typography> |
34 | | - </VBox> |
35 | | - </HBox> |
36 | | - </Button> |
37 | | - </HBox> |
38 | | - <HBox> |
39 | | - <Button |
40 | | - sx={{ |
41 | | - padding: "32px 32px", |
42 | | - boxShadow: '0px 1px 2px rgba(0, 0, 0, 0.25)', |
43 | | - '&:hover': { backgroundColor: 'yellow.main' }, |
44 | | - }} |
45 | | - onClick={deleteExistingProfile} |
46 | | - component={Link} |
47 | | - to={'/user-routing'} |
48 | | - > |
49 | | - <HBox sx={{ alignItems: 'center' }}> |
50 | | - <VBox sx={{ alignItems: 'flex-start' }}> |
51 | | - <Typography variant="h6">{t("app.welcomeBack.noBtnTitle")}</Typography> |
52 | | - <Typography variant="body1" sx={{ textAlign: 'left' }}>{t("app.welcomeBack.noBtnText")}</Typography> |
53 | | - </VBox> |
54 | | - </HBox> |
55 | | - </Button> |
56 | | - </HBox> |
| 18 | + <TileButton |
| 19 | + variant={'whiteNoBorderYellow'} |
| 20 | + title={"app.welcomeBack.yesBtnTitle"} |
| 21 | + subtitle="app.welcomeBack.yesBtnText" |
| 22 | + link={'/onboarding-choice'} |
| 23 | + /> |
| 24 | + <TileButton |
| 25 | + variant={'whiteNoBorderYellow'} |
| 26 | + title={"app.welcomeBack.noBtnTitle"} |
| 27 | + subtitle="app.welcomeBack.noBtnText" |
| 28 | + onClick={deleteExistingProfile} |
| 29 | + link={'/user-routing'} |
| 30 | + /> |
57 | 31 | </HBox> |
58 | 32 | <HBox sx={{ flexWrap: 'wrap' }}> |
59 | | - <Button |
60 | | - variant="text" |
61 | | - sx={{ |
62 | | - backgroundColor: 'greyTransparent.main', |
63 | | - '&:hover': { backgroundColor: 'custom.lightGrey' }, |
64 | | - }} |
65 | | - startIcon={<FileDownloadIcon sx={{ color: 'custom.darkGrey' }} />} |
| 33 | + <RegularButton |
| 34 | + variant={'blackOutlined'} |
| 35 | + text={"app.welcomeBack.exportBtn"} |
66 | 36 | onClick={exportProfile} |
67 | | - > |
68 | | - <Typography variant="body2" sx={{ color: 'custom.darkGrey' }}> |
69 | | - {t("app.welcomeBack.exportBtn")} |
70 | | - </Typography> |
71 | | - </Button> |
72 | | - <Button |
73 | | - variant="text" |
74 | | - sx={{ |
75 | | - backgroundColor: 'greyTransparent.main', |
76 | | - '&:hover': { backgroundColor: 'custom.lightGrey' }, |
77 | | - }} |
78 | | - startIcon={<DeleteIcon sx={{ color: 'custom.darkGrey' }} />} |
| 37 | + size='small' |
| 38 | + /> |
| 39 | + <RegularButton |
| 40 | + variant={'blackOutlined'} |
| 41 | + text={"app.welcomeBack.deleteBtn"} |
79 | 42 | onClick={deleteExistingProfile} |
80 | | - > |
81 | | - <Typography variant="body2" sx={{ color: 'custom.darkGrey' }}> |
82 | | - {t("app.welcomeBack.deleteBtn")} |
83 | | - </Typography> |
84 | | - </Button> |
| 43 | + size='small' |
| 44 | + /> |
85 | 45 | </HBox> |
86 | 46 | </VBox> |
87 | 47 | </AppScreenWrapperContainer> |
|
0 commit comments