11import React from 'react' ;
2- import { Link } from "react-router-dom" ;
3- import { Button , Typography } from '@mui/material' ;
2+ import { Typography } from '@mui/material' ;
43import { HBox , VBox } from '../../../shared-components/LayoutBoxes' ;
5- import useTranslation from "../../../language/useTranslation" ;
6- import { useSelectedBenefitStore , useSelectedTopicsStore } from "../../../storage/zustand" ;
4+ import { useSelectedBenefitStore , useSelectedTopicsStore } from "@/ui/storage/zustand" ;
75import theme from '@/theme' ;
6+ import RegularButton from '@/ui/shared-components/buttons/RegularButton' ;
87
98const EligibilityOverviewItemDetails = ( { item, eligible } ) => {
10- const { t } = useTranslation ( ) ;
119 const setSelectedBenefit = useSelectedBenefitStore ( ( state ) => state . setSelectedBenefit ) ;
1210 const clearSelectedTopics = useSelectedTopicsStore ( ( state ) => state . clear ) ;
1311
@@ -19,43 +17,23 @@ const EligibilityOverviewItemDetails = ({ item, eligible }) => {
1917 </ Typography >
2018 </ HBox >
2119 < HBox sx = { { gap : 2 , flexWrap : 'wrap' } } >
22- < Button
23- variant = "text"
24- sx = { {
25- color : 'pink.main' ,
26- padding : 1 ,
27- '&:hover' : {
28- backgroundColor : 'transparent' ,
29- color : 'black.main' ,
30- }
31- } }
32- component = { Link }
33- to = { `/benefit-page/${ item . id } ` } >
34- < Typography variant = "body1" sx = { { color : 'inherit' , fontWeight : 'bold' , textDecoration : 'underline' } } >
35- { t ( 'app.browseAll.learnMoreBtn' ) }
36- </ Typography >
37- </ Button >
20+ < RegularButton
21+ variant = { 'blackOutlined' }
22+ text = { 'app.browseAll.learnMoreBtn' }
23+ link = { `/benefit-page/${ item . id } ` }
24+ size = 'small'
25+ />
3826 { eligible === 'indeterminate' &&
39- < Button
40- variant = "text"
27+ < RegularButton
28+ variant = { 'blueHollow' }
4129 onClick = { ( ) => {
4230 clearSelectedTopics ( )
4331 setSelectedBenefit ( item . id ) ;
4432 } }
45- sx = { {
46- color : 'blue.main' ,
47- padding : 1 ,
48- '&:hover' : {
49- backgroundColor : 'transparent' ,
50- color : theme . palette . black . main ,
51- }
52- } }
53- component = { Link }
54- to = { `/onboarding-welcome/${ item . id } ` } >
55- < Typography variant = "body1" sx = { { color : 'inherit' , fontWeight : 'bold' , textDecoration : 'underline' } } >
56- { t ( 'app.browseAll.checkElBtn' ) }
57- </ Typography >
58- </ Button >
33+ text = { 'app.browseAll.checkElBtn' }
34+ link = { `/onboarding-welcome/${ item . id } ` }
35+ size = 'small'
36+ />
5937 }
6038 </ HBox >
6139 </ VBox >
0 commit comments