Skip to content

Scheduling infrastructure for absolutely everyone.

fixed /booking skeleton (#2722)

Peer Richelsen92806d525704
diff --git a/apps/web/components/booking/SkeletonLoader.tsx b/apps/web/components/booking/SkeletonLoader.tsx
index 2e50ad0ef9f..e38f75a0b39 100644
--- a/apps/web/components/booking/SkeletonLoader.tsx
+++ b/apps/web/components/booking/SkeletonLoader.tsx
@@ -2,8 +2,6 @@ import React from "react";
import { SkeletonText } from "@calcom/ui";
-import BookingsShell from "@components/BookingsShell";
-
function SkeletonLoader() {
return (
<ul className="mt-6 animate-pulse divide-y divide-neutral-200 border border-gray-200 bg-white sm:mx-0 sm:overflow-hidden">
@@ -22,10 +20,9 @@ function SkeletonItem() {
<div className="flex-grow truncate text-sm">
<div className="flex">
<div className="flex flex-col space-y-2">
- <SkeletonText width="32" height="5" />
- <SkeletonText width="16" height="4" />
+ <SkeletonText width="16" height="5" />
+ <SkeletonText width="32" height="4" />
</div>
- <SkeletonText width="24" height="5" className="ml-4" />
</div>
</div>
<div className="mt-4 hidden flex-shrink-0 sm:mt-0 sm:ml-5 lg:flex">
diff --git a/apps/web/pages/bookings/[status].tsx b/apps/web/pages/bookings/[status].tsx
index b6e77cb8601..f838a5bcd7c 100644
--- a/apps/web/pages/bookings/[status].tsx
+++ b/apps/web/pages/bookings/[status].tsx
@@ -60,10 +60,7 @@ export default function Bookings() {
};
return (
- <Shell
- heading={t("bookings")}
- subtitle={t("bookings_description")}
- customLoader={<SkeletonLoader></SkeletonLoader>}>
+ <Shell heading={t("bookings")} subtitle={t("bookings_description")} customLoader={<SkeletonLoader />}>
<WipeMyCalActionButton trpc={trpc} bookingStatus={status} bookingsEmpty={isEmpty} />
<BookingsShell>
<div className="-mx-4 flex flex-col sm:mx-auto">