From 29a6c70fc3406a4b754e25e28146b91eb023da5a Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Tue, 26 Apr 2022 03:38:41 +0100 Subject: [PATCH] Heading Skeleton (#2601) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/components/Shell.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/web/components/Shell.tsx b/apps/web/components/Shell.tsx index b68f1220f0..238cd1e6b0 100644 --- a/apps/web/components/Shell.tsx +++ b/apps/web/components/Shell.tsx @@ -329,10 +329,21 @@ const Layout = ({ )}> {props.HeadingLeftIcon &&
{props.HeadingLeftIcon}
}
-

- {props.heading} -

-

{props.subtitle}

+ {props.isLoading ? ( + <> +
+
+ + ) : ( + <> +

+ {props.heading} +

+

+ {props.subtitle} +

+ + )}
{props.CTA &&
{props.CTA}
}