From a52dce33c86f4c3ddd2e65d7ffa5941fd14ff6ce Mon Sep 17 00:00:00 2001 From: xHyroM Date: Thu, 5 Jan 2023 13:46:08 +0100 Subject: [PATCH] refactor(components-widgets): remove unused code & icon --- public/icons/chevrons-left.svg | 4 ---- src/components/widgets/docs/Sidebar.astro | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 public/icons/chevrons-left.svg diff --git a/public/icons/chevrons-left.svg b/public/icons/chevrons-left.svg deleted file mode 100644 index 97b25ba..0000000 --- a/public/icons/chevrons-left.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/components/widgets/docs/Sidebar.astro b/src/components/widgets/docs/Sidebar.astro index 15d8688..a8580bf 100644 --- a/src/components/widgets/docs/Sidebar.astro +++ b/src/components/widgets/docs/Sidebar.astro @@ -1,13 +1,9 @@ --- import type { MarkdownInstance } from "astro"; -import leftArrow from "/icons/chevrons-left.svg"; import rightArrow from "/icons/chevrons-right.svg"; const files = await Astro.glob("../../../pages/docs/items/**/*.md"); -for (let i = 0; i < 100; i++) { - files.push(files[0]); -} const sections = files.reduce((acc, file) => { const category: string = file.url!.split("/")[3]; @@ -22,7 +18,7 @@ const sections = files.reduce((acc, file) => { const categories = Object.keys(sections); --- -