From c2837838ee3031d9092c81e11d834ddae7c933b4 Mon Sep 17 00:00:00 2001 From: Scott Busche Date: Sun, 4 Aug 2024 14:36:58 -0500 Subject: [PATCH] fix(Gengar): Hide Summary section unless populated --- apps/artboard/src/templates/gengar.tsx | 28 ++++++++++---------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/apps/artboard/src/templates/gengar.tsx b/apps/artboard/src/templates/gengar.tsx index 44d5eb57..57492c6d 100644 --- a/apps/artboard/src/templates/gengar.tsx +++ b/apps/artboard/src/templates/gengar.tsx @@ -82,17 +82,19 @@ const Header = () => { const Summary = () => { const section = useArtboardStore((state) => state.resume.sections.summary); - + const primaryColor = useArtboardStore((state) => state.resume.metadata.theme.primary); if (!section.visible || isEmptyString(section.content)) return null; return ( -
-
-
+
+
+
+
+
); }; @@ -600,15 +602,7 @@ export const Gengar = ({ columns, isFirstPage = false }: TemplateProps) => {
- {isFirstPage && ( -
- -
- )} - + {isFirstPage && }
{main.map((section) => ( {mapSectionToComponent(section)}