Skip to content

Commit 14ae213

Browse files
committed
fix: add a skeleton loader
1 parent 3458837 commit 14ae213

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

apps/web/components/eventtype/EventSetupTab.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
1616
import { md } from "@calcom/lib/markdownIt";
1717
import { slugify } from "@calcom/lib/slugify";
1818
import turndown from "@calcom/lib/turndownService";
19-
import { Button, Label, Select, SettingsToggle, Skeleton, TextField, Editor } from "@calcom/ui";
19+
import {
20+
Button,
21+
Label,
22+
Select,
23+
SettingsToggle,
24+
Skeleton,
25+
TextField,
26+
Editor,
27+
SkeletonContainer,
28+
SkeletonText,
29+
} from "@calcom/ui";
2030
import { FiEdit2, FiCheck, FiX, FiPlus } from "@calcom/ui/components/icon";
2131

2232
import { EditLocationDialog } from "@components/dialog/EditLocationDialog";
@@ -55,7 +65,11 @@ const DescriptionEditor = (props: DescriptionEditorProps) => {
5565
excludedToolbarItems={["blockType"]}
5666
placeholder={t("quick_video_meeting")}
5767
/>
58-
) : null;
68+
) : (
69+
<SkeletonContainer>
70+
<SkeletonText className="block h-24 w-full" />
71+
</SkeletonContainer>
72+
);
5973
};
6074

6175
export const EventSetupTab = (

0 commit comments

Comments
 (0)