Skip to content

Commit

Permalink
🎨 improve docs dynamic live with skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineKM committed Dec 6, 2022
1 parent 0fe26c8 commit b65ca19
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/components/Playground/playground.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import React from "react";
import dynamic from "next/dynamic";
import { useTheme } from "@tonightpass/kitchen";
import { Skeleton, useTheme } from "@tonightpass/kitchen";

const DynamicLive = dynamic(() => import("./dynamic-live"), {
ssr: false,
loading: () => (
<div style={{ padding: "20pt 0" }}>
{/* TODO: Use the loading */}
Loading...
</div>
),
loading: () => <Skeleton width="100%" height={100} />,
});

export type PlaygroundProps = {
Expand Down

1 comment on commit b65ca19

@vercel
Copy link

@vercel vercel bot commented on b65ca19 Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.