@@ -70,6 +70,9 @@ export type CustomClassNames = {
70
70
overridesModalClassNames ?: string ;
71
71
dateOverrideClassNames ?: {
72
72
container ?: string ;
73
+ title ?: string ;
74
+ description ?: string ;
75
+ button ?: string ;
73
76
} ;
74
77
hiddenSwitchClassname ?: {
75
78
container ?: string ;
@@ -193,6 +196,9 @@ const DateOverride = ({
193
196
overridesModalClassNames ?: string ;
194
197
classNames ?: {
195
198
container ?: string ;
199
+ title ?: string ;
200
+ description ?: string ;
201
+ button ?: string ;
196
202
} ;
197
203
handleSubmit : ( data : AvailabilityFormValues ) => Promise < void > ;
198
204
} ) => {
@@ -210,15 +216,17 @@ const DateOverride = ({
210
216
211
217
return (
212
218
< div className = { cn ( "p-6" , classNames ?. container ) } >
213
- < h3 className = "text-emphasis font-medium leading-6" >
219
+ < h3 className = { cn ( "text-emphasis font-medium leading-6" , classNames ?. title ) } >
214
220
{ t ( "date_overrides" ) } { " " }
215
221
< Tooltip content = { t ( "date_overrides_info" ) } >
216
222
< span className = "inline-block align-middle" >
217
223
< Icon name = "info" className = "h-4 w-4" />
218
224
</ span >
219
225
</ Tooltip >
220
226
</ h3 >
221
- < p className = "text-subtle mb-4 text-sm" > { t ( "date_overrides_subtitle" ) } </ p >
227
+ < p className = { cn ( "text-subtle mb-4 text-sm" , classNames ?. description ) } >
228
+ { t ( "date_overrides_subtitle" ) }
229
+ </ p >
222
230
< div className = "space-y-2" >
223
231
< DateOverrideList
224
232
excludedDates = { excludedDates }
@@ -242,7 +250,11 @@ const DateOverride = ({
242
250
userTimeFormat = { userTimeFormat }
243
251
weekStart = { weekStart }
244
252
Trigger = {
245
- < Button color = "secondary" StartIcon = "plus" data-testid = "add-override" >
253
+ < Button
254
+ className = { classNames ?. button }
255
+ color = "secondary"
256
+ StartIcon = "plus"
257
+ data-testid = "add-override" >
246
258
{ t ( "add_an_override" ) }
247
259
</ Button >
248
260
}
0 commit comments