From e75ce8afaf37f90331727f4742474501fb7bc4a2 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Thu, 16 Jan 2025 12:11:14 +0100 Subject: [PATCH] improvements --- .gitignore | 2 ++ config.json => config.sample.json | 0 src/app/components/BusControlTabs.tsx | 4 +--- src/app/layout.tsx | 4 ++-- src/app/page.tsx | 6 ++++-- src/app/utils/fetchConfig.ts | 6 +++++- 6 files changed, 14 insertions(+), 8 deletions(-) rename config.json => config.sample.json (100%) diff --git a/.gitignore b/.gitignore index 3c6ff67..5945f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. .idea/ +config.json + # dependencies /node_modules /.pnp diff --git a/config.json b/config.sample.json similarity index 100% rename from config.json rename to config.sample.json diff --git a/src/app/components/BusControlTabs.tsx b/src/app/components/BusControlTabs.tsx index 85e33ec..a9277dd 100644 --- a/src/app/components/BusControlTabs.tsx +++ b/src/app/components/BusControlTabs.tsx @@ -19,8 +19,6 @@ const BusControlTabs = () => { content: }; }); - // setTabComponents(components); - // set the active tab to the first tab if (components.length > 0) { setActiveTab(components[0].id); @@ -55,7 +53,7 @@ const BusControlTabs = () => { {tabComponents.map((tab) => (