Skip to content

Commit

Permalink
Fixed grey box rendering when articles are created without a contact …
Browse files Browse the repository at this point in the history
…us form
  • Loading branch information
Calinator444 committed Aug 27, 2024
1 parent c71a970 commit 74ddffe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pages/articles/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ export default function ArticlesPage(
)}
</section>
)}
<Section className="!bg-gray-75 pb-25 text-center">
{


(data.articles.bookingButton?.showContactForm) && <Container size="custom" className="w-full">

{
(data.articles.bookingButton?.showContactForm) &&
<Section className="!bg-gray-75 pb-25 text-center">
<Container size="custom" className="w-full">
{data.articles.bookingButton.title &&
<h1 className="mx-auto w-fit" data-tina-field={tinaField(data.articles.bookingButton, "title")}>
{data.articles.bookingButton.title}
Expand All @@ -124,8 +125,9 @@ export default function ArticlesPage(
}
<BookingButton buttonSubtitle={data.articles.bookingButton.buttonSubtitle} dataTinaField={tinaField(data.articles.bookingButton, "buttonSubtitle")} buttonText={data.articles.bookingButton.buttonText} />
</Container>
}

</Section>
}
<Section>
<BuiltOnAzure data={{ backgroundColor: "default" }} />
</Section>
Expand Down

0 comments on commit 74ddffe

Please sign in to comment.