fixed /booking skeleton (#2722)
Some checks failed
Crowdin Action / synchronize-with-crowdin (push) Has been cancelled
Some checks failed
Crowdin Action / synchronize-with-crowdin (push) Has been cancelled
* fixed /booking skeleton * nit
This commit is contained in:
parent
9440df4445
commit
92806d5257
2 changed files with 3 additions and 9 deletions
|
@ -2,8 +2,6 @@ import React from "react";
|
||||||
|
|
||||||
import { SkeletonText } from "@calcom/ui";
|
import { SkeletonText } from "@calcom/ui";
|
||||||
|
|
||||||
import BookingsShell from "@components/BookingsShell";
|
|
||||||
|
|
||||||
function SkeletonLoader() {
|
function SkeletonLoader() {
|
||||||
return (
|
return (
|
||||||
<ul className="mt-6 animate-pulse divide-y divide-neutral-200 border border-gray-200 bg-white sm:mx-0 sm:overflow-hidden">
|
<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-grow truncate text-sm">
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<div className="flex flex-col space-y-2">
|
<div className="flex flex-col space-y-2">
|
||||||
<SkeletonText width="32" height="5" />
|
<SkeletonText width="16" height="5" />
|
||||||
<SkeletonText width="16" height="4" />
|
<SkeletonText width="32" height="4" />
|
||||||
</div>
|
</div>
|
||||||
<SkeletonText width="24" height="5" className="ml-4" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-4 hidden flex-shrink-0 sm:mt-0 sm:ml-5 lg:flex">
|
<div className="mt-4 hidden flex-shrink-0 sm:mt-0 sm:ml-5 lg:flex">
|
||||||
|
|
|
@ -60,10 +60,7 @@ export default function Bookings() {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Shell
|
<Shell heading={t("bookings")} subtitle={t("bookings_description")} customLoader={<SkeletonLoader />}>
|
||||||
heading={t("bookings")}
|
|
||||||
subtitle={t("bookings_description")}
|
|
||||||
customLoader={<SkeletonLoader></SkeletonLoader>}>
|
|
||||||
<WipeMyCalActionButton trpc={trpc} bookingStatus={status} bookingsEmpty={isEmpty} />
|
<WipeMyCalActionButton trpc={trpc} bookingStatus={status} bookingsEmpty={isEmpty} />
|
||||||
<BookingsShell>
|
<BookingsShell>
|
||||||
<div className="-mx-4 flex flex-col sm:mx-auto">
|
<div className="-mx-4 flex flex-col sm:mx-auto">
|
||||||
|
|
Loading…
Reference in a new issue