Skip to content

Commit 0f5ce0c

Browse files
committed
feat: date override title,description,button
1 parent 9d392e0 commit 0f5ce0c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/platform/atoms/availability/AvailabilitySettings.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ export type CustomClassNames = {
7070
overridesModalClassNames?: string;
7171
dateOverrideClassNames?: {
7272
container?: string;
73+
title?: string;
74+
description?: string;
75+
button?: string;
7376
};
7477
hiddenSwitchClassname?: {
7578
container?: string;
@@ -193,6 +196,9 @@ const DateOverride = ({
193196
overridesModalClassNames?: string;
194197
classNames?: {
195198
container?: string;
199+
title?: string;
200+
description?: string;
201+
button?: string;
196202
};
197203
handleSubmit: (data: AvailabilityFormValues) => Promise<void>;
198204
}) => {
@@ -210,15 +216,17 @@ const DateOverride = ({
210216

211217
return (
212218
<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)}>
214220
{t("date_overrides")}{" "}
215221
<Tooltip content={t("date_overrides_info")}>
216222
<span className="inline-block align-middle">
217223
<Icon name="info" className="h-4 w-4" />
218224
</span>
219225
</Tooltip>
220226
</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>
222230
<div className="space-y-2">
223231
<DateOverrideList
224232
excludedDates={excludedDates}
@@ -242,7 +250,11 @@ const DateOverride = ({
242250
userTimeFormat={userTimeFormat}
243251
weekStart={weekStart}
244252
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">
246258
{t("add_an_override")}
247259
</Button>
248260
}

0 commit comments

Comments
 (0)