fix: Missing delay before mounting loading skeleton

This commit is contained in:
Tom Moor
2024-06-09 14:23:48 -04:00
parent ed59b3e350
commit 2e466aefc3

View File

@@ -5,13 +5,17 @@ import Fade from "~/components/Fade";
import Flex from "~/components/Flex";
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({
includeTitle,
delay,
}: {
includeTitle?: boolean;
delay?: number;
}) {
delay = 500,
}: Props) {
const content = (
<>
<PlaceholderText delay={0.2} />