@@ -17,9 +17,7 @@ const OnboardingWelcomeOverviewView = ({
1717 topicRps,
1818} ) => {
1919
20- const isBenefitMode = ( ) => { // true = by benefits, false = by topic
21- return benefitTitles && benefitTitles . length > 0 ;
22- }
20+ const isBenefitMode = benefitTitles ?. length > 0 ;
2321
2422 return (
2523 < Layout isApp = { true } logo = { false } >
@@ -31,39 +29,43 @@ const OnboardingWelcomeOverviewView = ({
3129 </ Typography >
3230 < HBox sx = { { gap : 4 , alignItems : 'center' , flexWrap : 'wrap' } } >
3331 < TimeIcon />
34- { ! isBenefitMode ( ) && numberOfBenefits > 0 && < BenefitsIcon numberOfBenefits = { numberOfBenefits } /> }
32+ { ! isBenefitMode && numberOfBenefits > 0 && < BenefitsIcon numberOfBenefits = { numberOfBenefits } /> }
3533 </ HBox >
3634 </ VBox >
3735 < VBox sx = { { maxWidth : '800px' } } >
3836 {
39- ! isBenefitMode ( ) && numberOfBenefits === 0 ? (
37+ ! isBenefitMode && numberOfBenefits === 0 ? (
4038 < Typography variant = "h2" sx = { { color : 'pink.main' , fontWeight : '500' } } >
4139 { t ( 'app.topicsChosen.noChoiceTitle' ) }
4240 </ Typography > )
4341 : (
4442 < >
4543 < Typography variant = "h2" sx = { { color : 'pink.main' , fontWeight : '500' } } >
46- { isBenefitMode ( ) ? t ( 'app.topicsChosen.benefitsTitle' ) : t ( 'app.topicsChosen.topicsTitle' ) }
44+ { isBenefitMode ? t ( 'app.topicsChosen.benefitsTitle' ) : t ( 'app.topicsChosen.topicsTitle' ) }
4745 </ Typography >
4846 < Typography variant = "body1" >
49- { isBenefitMode ( ) ? t ( 'app.topicsChosen.benefitsText' ) : t ( 'app.topicsChosen.topicsText' ) }
47+ { isBenefitMode ? t ( 'app.topicsChosen.benefitsText' ) : t ( 'app.topicsChosen.topicsText' ) }
5048 </ Typography >
5149 </ > ) }
5250 </ VBox >
5351 < VBox sx = { { gap : 4 } } >
54- { isBenefitMode ( ) ? (
52+ { isBenefitMode ? (
5553 < VBox alignItems = { 'flex-start' } >
5654 < HBox sx = { {
5755 padding : { xs : '20px' , md : 4 } ,
5856 borderRadius : theme . shape . borderRadius ,
5957 backgroundColor : 'white.main' ,
6058 } } >
6159 < VBox >
62- { benefitTitles . map ( ( title , idx ) => (
63- < Typography key = { idx } variant = "h2" sx = { { fontWeight : '400' } } >
64- { title }
65- </ Typography >
66- ) ) }
60+ < ul >
61+ { benefitTitles . map ( ( title , idx ) => (
62+ < li key = { idx } >
63+ < Typography variant = "body1" sx = { { fontWeight : '400' } } >
64+ { title }
65+ </ Typography >
66+ </ li >
67+ ) ) }
68+ </ ul >
6769 </ VBox >
6870 </ HBox >
6971 </ VBox >
0 commit comments