fix: Missing delay before mounting loading skeleton
This commit is contained in:
@@ -5,13 +5,17 @@ import Fade from "~/components/Fade";
|
|||||||
import Flex from "~/components/Flex";
|
import Flex from "~/components/Flex";
|
||||||
import PlaceholderText from "~/components/PlaceholderText";
|
import PlaceholderText from "~/components/PlaceholderText";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
/** Whether to include a title placeholder. */
|
||||||
|
includeTitle?: boolean;
|
||||||
|
/** Delay before mounting the component. Defaults to 500ms */
|
||||||
|
delay?: number;
|
||||||
|
};
|
||||||
|
|
||||||
export default function PlaceholderDocument({
|
export default function PlaceholderDocument({
|
||||||
includeTitle,
|
includeTitle,
|
||||||
delay,
|
delay = 500,
|
||||||
}: {
|
}: Props) {
|
||||||
includeTitle?: boolean;
|
|
||||||
delay?: number;
|
|
||||||
}) {
|
|
||||||
const content = (
|
const content = (
|
||||||
<>
|
<>
|
||||||
<PlaceholderText delay={0.2} />
|
<PlaceholderText delay={0.2} />
|
||||||
|
|||||||
Reference in New Issue
Block a user