From 04d88ae5e7020025f2fb53930658bd6cfcb2cd1c Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 3 Dec 2021 15:16:50 -0500 Subject: [PATCH] interface: refine spacing --- .../landscape/components/GroupSummary.tsx | 2 +- .../landscape/components/Join/Skeleton.tsx | 28 ++++++++----------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/GroupSummary.tsx b/pkg/interface/src/views/landscape/components/GroupSummary.tsx index 1717df516..723b200e2 100644 --- a/pkg/interface/src/views/landscape/components/GroupSummary.tsx +++ b/pkg/interface/src/views/landscape/components/GroupSummary.tsx @@ -33,7 +33,7 @@ export function GroupSummary( ); return ( - + @@ -78,28 +78,19 @@ export function JoinBody(props: { desc: JoinDesc }) { const { ship, name } = resourceFromPath(group); const invite = useInviteForResource(kind, ship, name); - const [override, setOverride] = useState(false); - - useEffect(() => { - let interval = setInterval(() => { - setOverride((s) => !s); - }, 5000); - - return () => { - clearInterval(interval); - }; - }, []); return ( <> {!desc ? "Prompt invite link" : null} - {preview && override ? ( + {preview ? ( ) : ( @@ -130,12 +121,15 @@ function FallbackSummary(props: { path: string }) { return ( - /{name} + + /{name} + ); }