@@ -57,6 +57,11 @@ export default function ReminderItem({
5757 otherUser . userId ,
5858 hostRequestId ,
5959 ) ;
60+ } else if ( reminder . completeMyHomeReminder ) {
61+ title = t ( "reminder.complete_my_home.title" ) ;
62+ description = t ( "reminder.complete_my_home.description" ) ;
63+ buttonText = t ( "reminder.complete_my_home.button" ) ;
64+ href = routeToEditProfile ( "home" ) ;
6065 } else if ( reminder . completeProfileReminder ) {
6166 title = t ( "reminder.complete_profile.title" ) ;
6267 description = t ( "reminder.complete_profile.description" ) ;
@@ -74,50 +79,49 @@ export default function ReminderItem({
7479 return (
7580 < Box
7681 sx = { ( theme ) => ( {
77- position : "relative" ,
7882 backgroundColor : alpha ( theme . palette . secondary . main , 0.08 ) ,
79- padding : isMobile ? "20px " : "24px" ,
83+ padding : isMobile ? "14px " : "24px" ,
8084 display : "flex" ,
8185 flexDirection : "column" ,
8286 height : "100%" ,
8387 } ) }
8488 >
85- { onDismiss && (
86- < IconButton
87- aria-label = { t ( "reminder.carousel_dismiss_button_a11y" ) }
88- onClick = { onDismiss }
89- size = "small"
90- sx = { ( theme ) => ( {
91- position : "absolute" ,
92- top : theme . spacing ( 1 ) ,
93- right : theme . spacing ( 1 ) ,
94- } ) }
95- >
96- < CloseIcon />
97- </ IconButton >
98- ) }
99-
100- < Box sx = { { flexGrow : 1 } } >
89+ < Box
90+ sx = { {
91+ display : "flex" ,
92+ justifyContent : "space-between" ,
93+ alignItems : "flex-start" ,
94+ marginBottom : isMobile ? "8px" : "16px" ,
95+ } }
96+ >
10197 < Typography
102- variant = "h3"
103- sx = { {
104- fontWeight : 800 ,
105- marginBottom : isMobile ? "12px" : "16px" ,
106- } }
98+ variant = { isMobile ? "h4" : "h3" }
99+ sx = { { fontWeight : 800 , flexGrow : 1 } }
107100 >
108101 { title }
109102 </ Typography >
110-
111- < Typography
112- sx = { {
113- marginBottom : isMobile ? "14px" : "18px" ,
114- fontSize : ".85rem" ,
115- } }
116- >
117- { description }
118- </ Typography >
103+ { onDismiss && (
104+ < IconButton
105+ aria-label = { t ( "reminder.carousel_dismiss_button_a11y" ) }
106+ onClick = { onDismiss }
107+ size = "small"
108+ sx = { { marginTop : "-4px" , marginRight : "-4px" , flexShrink : 0 } }
109+ >
110+ < CloseIcon />
111+ </ IconButton >
112+ ) }
119113 </ Box >
120114
115+ < Typography
116+ sx = { {
117+ flexGrow : 1 ,
118+ marginBottom : isMobile ? "10px" : "18px" ,
119+ fontSize : isMobile ? ".75rem" : ".85rem" ,
120+ } }
121+ >
122+ { description }
123+ </ Typography >
124+
121125 < Button
122126 component = { Link }
123127 href = { href }
0 commit comments