feat: atoms date overrides modal custom classes (#16147)
* feat: atoms date override modal custom classes * refactor: rename overridesModalClassName to overridesModalClassNames
This commit is contained in:
1 parent
d734841184
commit
13347edced
2 files changed
+9
-1
No files matched your search
@@ -3,6 +3,7 @@ import { useForm } from "react-hook-form";
|
||||
|
||||
import type { Dayjs } from "@calcom/dayjs";
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { classNames as cs } from "@calcom/lib";
|
||||
import { yyyymmdd } from "@calcom/lib/date-fns";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { WorkingHours } from "@calcom/types/schedule";
|
||||
@@ -205,6 +206,7 @@ const DateOverrideInputDialog = ({
|
||||
excludedDates = [],
|
||||
userTimeFormat,
|
||||
weekStart = 0,
|
||||
className,
|
||||
...passThroughProps
|
||||
}: {
|
||||
workingHours: WorkingHours[];
|
||||
@@ -214,13 +216,14 @@ const DateOverrideInputDialog = ({
|
||||
value?: TimeRange[];
|
||||
userTimeFormat: number | null;
|
||||
weekStart?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
||||
className?: string;
|
||||
}) => {
|
||||
const [open, setOpen] = useState(false);
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogTrigger asChild>{Trigger}</DialogTrigger>
|
||||
|
||||
<DialogContent enableOverflow={true} size="md" className="p-0">
|
||||
<DialogContent enableOverflow={true} size="md" className={cs("p-0", className)}>
|
||||
<DateOverrideForm
|
||||
excludedDates={excludedDates}
|
||||
weekStart={weekStart}
|
||||
|
||||
Reference in new issue
Block a user