@@ -45,52 +45,21 @@ const EligibilityOverviewItem = ({ t, item, eligible }) => {
4545 } }
4646 >
4747 < VBox sx = { { gap : 2 } } >
48- < Typography variant = 'h2' sx = { { color : color , fontWeight : '400' , wordBreak : 'break-word' } } >
49- { item . title }
50- </ Typography >
51- { item . status === "beta" && (
52- < Typography variant = 'body1' sx = { { color : 'blue.main' } } >
53- Beta
48+ < HBox sx = { { alignItems : 'flex-end' , gap : 2 , flexWrap : 'wrap' } } >
49+ < Typography variant = 'h2' sx = { { color : color , fontWeight : '400' , wordBreak : 'break-word' } } >
50+ { item . title }
5451 </ Typography >
55- ) }
56- < Typography variant = "body1" >
52+ { item . status === "beta" && (
53+ < Typography variant = 'body1' sx = { { color : 'blue.main' } } >
54+ Beta
55+ </ Typography >
56+ ) }
57+ </ HBox >
58+ < Typography variant = "body1" sx = { { wordBreak : 'break-word' } } >
5759 { item . description }
5860 </ Typography >
5961 </ VBox >
6062 </ HBox >
61- < HBox sx = { {
62- flex : '1 1 auto' ,
63- gap : 2 ,
64- flexWrap : 'wrap' ,
65- justifyContent : 'flex-end'
66- } } >
67- < VBox
68- sx = { { alignItems : 'flex-end' , gap : 1 , flexWrap : 'wrap' } }
69- >
70- { eligible === 'indeterminate' &&
71- < HBox >
72- < RegularButton
73- variant = { 'pinkContained' }
74- onClick = { ( ) => {
75- clearSelectedTopics ( )
76- setSelectedBenefit ( item . id ) ;
77- } }
78- text = { 'app.browseAll.checkElBtn' }
79- link = { `/onboarding-welcome/${ item . id } ` }
80- size = 'small'
81- />
82- </ HBox >
83- }
84- < HBox >
85- < RegularButton
86- variant = { 'blueHollow' }
87- text = { 'app.browseAll.learnMoreBtn' }
88- link = { `/benefit-page/${ item . id } ` }
89- size = 'small'
90- />
91- </ HBox >
92- </ VBox >
93- </ HBox >
9463 </ HBox >
9564 < VBox sx = { { gap : 2 } } >
9665 < HBox sx = { { flexWrap : 'wrap' , gap : 1 } } >
@@ -104,16 +73,37 @@ const EligibilityOverviewItem = ({ t, item, eligible }) => {
10473 )
10574 ) }
10675 </ HBox >
107- {
108- eligible !== 'indeterminate' && (
109- < >
110- < Divider sx = { { color : 'dark.light' , borderStyle : 'dashed' } } />
76+ < Divider sx = { { color : 'dark.light' , borderStyle : 'dashed' } } />
77+ < HBox sx = { { flexWrap : 'wrap' , gap : 2 , alignItems : 'center' } } >
78+ {
79+ eligible !== 'indeterminate' && (
11180 < HBox >
11281 < EligibilityOverviewBanner t = { t } eligible = { eligible } />
11382 </ HBox >
114- </ >
115- )
116- }
83+ )
84+ }
85+ { eligible === 'indeterminate' &&
86+
87+ < RegularButton
88+ variant = { 'pinkContained' }
89+ onClick = { ( ) => {
90+ clearSelectedTopics ( )
91+ setSelectedBenefit ( item . id ) ;
92+ } }
93+ text = { 'app.browseAll.checkElBtn' }
94+ link = { `/onboarding-welcome/${ item . id } ` }
95+ size = 'small'
96+ />
97+
98+ }
99+ < RegularButton
100+ variant = { 'blueHollow' }
101+ text = { 'app.browseAll.learnMoreBtn' }
102+ link = { `/benefit-page/${ item . id } ` }
103+ size = 'small'
104+ />
105+ </ HBox >
106+
117107 </ VBox >
118108 </ VBox >
119109 ) ;
0 commit comments