From 43cc641d1d1a74330ec5da454c284e280e94cca7 Mon Sep 17 00:00:00 2001 From: deme Date: Tue, 18 Apr 2023 08:27:46 -0300 Subject: [PATCH] [#754,landing page][s]: fix build errors --- site/components/Features.tsx | 7 +++++-- site/components/Layout.tsx | 4 ++-- site/components/NavItem.tsx | 6 ++---- site/pages/[...slug].tsx | 5 +++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/site/components/Features.tsx b/site/components/Features.tsx index c0c58f73..d1679550 100644 --- a/site/components/Features.tsx +++ b/site/components/Features.tsx @@ -47,8 +47,11 @@ export default function Features() { CKAN.

- {features.map((feature) => ( -
+ {features.map((feature, i) => ( +
diff --git a/site/components/Layout.tsx b/site/components/Layout.tsx index 836737ab..9d1b9195 100644 --- a/site/components/Layout.tsx +++ b/site/components/Layout.tsx @@ -57,7 +57,7 @@ export default function Layout({ title?: string; tableOfContents?; }) { - const { toc } = children.props; + // const { toc } = children.props; const currentSection = useTableOfContents(tableOfContents); @@ -94,7 +94,7 @@ export default function Layout({ {/** TABLE OF CONTENTS */} - {tableOfContents.length > 0 && (toc ?? siteConfig.tableOfContents) && ( + {tableOfContents.length > 0 && (siteConfig.tableOfContents) && (