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 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} />
|
||||
|
||||
Reference in New Issue
Block a user