Skip to content

Commit de0cb86

Browse files
committed
DatePicker Skeleton visibility improvements
1 parent 02571aa commit de0cb86

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/ui/booker/DatePicker.tsx

+7-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import isToday from "dayjs/plugin/isToday";
55
import classNames from "@calcom/lib/classNames";
66
import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
77
import { weekdayNames } from "@calcom/lib/weekday";
8-
import { SkeletonContainer, SkeletonText } from "@calcom/ui/skeleton";
8+
import { SkeletonText } from "@calcom/ui/skeleton";
99

1010
dayjs.extend(isToday);
1111

@@ -88,13 +88,12 @@ const Days = ({
8888
{day === null ? (
8989
<div key={`e-${idx}`} />
9090
) : props.isLoading ? (
91-
<SkeletonContainer>
92-
<button
93-
className="absolute top-0 left-0 right-0 bottom-0 mx-auto w-full rounded-sm border-transparent bg-gray-50 text-gray-400 opacity-50 dark:bg-gray-900 dark:text-gray-400"
94-
key={`e-${idx}`}>
95-
{day.date()}
96-
</button>
97-
</SkeletonContainer>
91+
<button
92+
className="absolute top-0 left-0 right-0 bottom-0 mx-auto flex w-full items-center justify-center rounded-sm border-transparent bg-gray-50 text-center text-gray-400 opacity-50 dark:bg-gray-900 dark:text-gray-400"
93+
key={`e-${idx}`}
94+
disabled>
95+
<SkeletonText width="5" height="4" />
96+
</button>
9897
) : (
9998
<DayComponent
10099
date={day}

0 commit comments

Comments
 (0)