Revert "feat: DatePickerRange에 z-index props 추가"
This reverts commit b75caf4f7b.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user