From e74fc083ae2a6cd28cae9a9364af7ed27f44dba8 Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Thu, 27 Feb 2025 20:10:42 +0000 Subject: [PATCH] fix(source): cleanup exports (#168) * rollup - fail when typescript has warnings or errors Currently this is detected when building the docu. Since the developer rarely does that the problem is detected on github. This change allows the developer to discover the error early by failing the build. * removed unused components and exports --------- Co-authored-by: Ulf Gebhardt --- src/Components/AppShell/Sitemap.tsx | 41 --------------- src/Components/AppShell/index.tsx | 1 - src/Components/Templates/CircleLayout.tsx | 48 ----------------- src/Components/Templates/MoonCalendar.tsx | 64 ----------------------- src/Components/Templates/index.tsx | 2 - 5 files changed, 156 deletions(-) delete mode 100644 src/Components/AppShell/Sitemap.tsx delete mode 100644 src/Components/Templates/CircleLayout.tsx delete mode 100644 src/Components/Templates/MoonCalendar.tsx diff --git a/src/Components/AppShell/Sitemap.tsx b/src/Components/AppShell/Sitemap.tsx deleted file mode 100644 index 3a212924..00000000 --- a/src/Components/AppShell/Sitemap.tsx +++ /dev/null @@ -1,41 +0,0 @@ -/* eslint-disable @typescript-eslint/restrict-template-expressions */ -import { useEffect, useState } from 'react' - -import { useItems } from '#components/Map/hooks/useItems' - -/** - * @category AppShell - */ -export const Sitemap = ({ url }: { url: string }) => { - const [sitemap, setSitemap] = useState('') - - const items = useItems() - - useEffect(() => { - if (items.length) { - const generateSitemap = () => { - let sitemapXML = '\n' - sitemapXML += '\n' - - items.forEach((item) => { - sitemapXML += ' \n' - sitemapXML += ` ${url}/${item.slug}\n` - sitemapXML += ' \n' - }) - - sitemapXML += '' - return sitemapXML - } - - setSitemap(generateSitemap()) - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [items]) - - return ( -
-

Sitemap

-