From b0fa14fcfebd6c4d9b7325328ca4a16da7af1781 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 13 Feb 2022 20:20:20 +0100 Subject: [PATCH 1/5] Extracted nav pills to their own component for reusability --- src/app/App.tsx | 2 +- src/common/MainHeader.tsx | 2 +- src/settings/Settings.tsx | 30 +++++++-------- .../VisitsStats.scss => utils/NavPills.scss} | 10 ++--- src/utils/NavPills.tsx | 17 +++++++++ src/visits/VisitsStats.tsx | 38 ++++++++----------- 6 files changed, 54 insertions(+), 45 deletions(-) rename src/{visits/VisitsStats.scss => utils/NavPills.scss} (78%) create mode 100644 src/utils/NavPills.tsx diff --git a/src/app/App.tsx b/src/app/App.tsx index 499841f5..afe7c2e9 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -47,7 +47,7 @@ const App = (
} /> - } /> + } /> } /> } /> } /> diff --git a/src/common/MainHeader.tsx b/src/common/MainHeader.tsx index 4ce52d68..e4dc28b6 100644 --- a/src/common/MainHeader.tsx +++ b/src/common/MainHeader.tsx @@ -31,7 +31,7 @@ const MainHeader = (ServersDropdown: FC) => () => {