From 7b4a7451331404afc23a42da308cd0e7a5d63d08 Mon Sep 17 00:00:00 2001 From: Luqmaan Essop Date: Wed, 8 May 2024 10:26:13 +0200 Subject: [PATCH] style: complete styling --- packages/ui/src/components/Molecules/Breadcrumbs.tsx | 6 +++--- packages/ui/src/components/Organisms/PageDisplay.tsx | 5 ++--- packages/ui/src/components/Routes/Page.stories.tsx | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/ui/src/components/Molecules/Breadcrumbs.tsx b/packages/ui/src/components/Molecules/Breadcrumbs.tsx index 0efa3eb61..27232e13b 100644 --- a/packages/ui/src/components/Molecules/Breadcrumbs.tsx +++ b/packages/ui/src/components/Molecules/Breadcrumbs.tsx @@ -20,7 +20,7 @@ export function BreadCrumbs({ className }: { className?: string }) {
  • {index > 0 ? ( ) : null} {target === '/' && ( )} - {title} + {title}
  • ))} diff --git a/packages/ui/src/components/Organisms/PageDisplay.tsx b/packages/ui/src/components/Organisms/PageDisplay.tsx index 29ef63583..2abf2c3e9 100644 --- a/packages/ui/src/components/Organisms/PageDisplay.tsx +++ b/packages/ui/src/components/Organisms/PageDisplay.tsx @@ -21,10 +21,9 @@ export function PageDisplay(page: PageFragment) { - ) : ( - - )} + ) : null}
    +
    {page?.content?.filter(isTruthy).map((block, index) => { switch (block.__typename) { diff --git a/packages/ui/src/components/Routes/Page.stories.tsx b/packages/ui/src/components/Routes/Page.stories.tsx index 6f3babd25..27ead643b 100644 --- a/packages/ui/src/components/Routes/Page.stories.tsx +++ b/packages/ui/src/components/Routes/Page.stories.tsx @@ -57,7 +57,7 @@ export const Default = { }, }, parameters: { - location: new URL('local:/drupal'), + location: new URL('local:/gatsby-turbo'), }, } satisfies StoryObj;