Revert "feat: DatePickerRange에 z-index props 추가"

This reverts commit b75caf4f7b.
This commit is contained in:
swcho
2025-07-10 15:47:36 +09:00
parent baa171b8d1
commit c394fd4de2
@@ -12,14 +12,12 @@ import { Popover, PopoverContent, PopoverTrigger } from "@common/components/ui";
type DatePickerRangeProps = {
placeholder?: string;
disabled?: boolean | ((date: Date) => boolean);
zIndex?: number; // z-index prop 추가
} & DayPickerSingleProps;
export function DatePickerRange({
className,
placeholder = "날짜 선택",
disabled,
zIndex,
...props
}: DatePickerRangeProps) {
return (
@@ -38,8 +36,8 @@ export function DatePickerRange({
)}
</Button>
</PopoverTrigger>
<PopoverContent className={cn("w-auto p-0", zIndex ? `!z-[${zIndex}]` : "")}>
<Calendar initialFocus classNames={{ cell: "rounded-md" }} {...props}
<PopoverContent className="w-auto p-0">
<Calendar initialFocus classNames={{ cell: "rounded-md" }} {...props}
disabled={typeof disabled === "function" ? disabled : undefined}
/>
</PopoverContent>