From ac5e2817fcf5a68508f0a24708b23b007674b039 Mon Sep 17 00:00:00 2001 From: itsmegood Date: Sun, 4 Feb 2024 11:45:11 +0530 Subject: [PATCH] make themeSwitcher independent component --- app/components/layout/header.tsx | 2 +- app/components/theme-switcher.tsx | 63 ++++++++++++++++ app/components/ui/button.tsx | 2 +- app/root.tsx | 64 ++++------------ app/routes/c.$companyId+/_layout_company.tsx | 18 +++-- app/routes/c.$companyId+/index.tsx | 2 +- app/routes/c.$companyId.sales+/index.tsx | 2 +- app/routes/studio+/c.new.tsx | 19 +++++ app/routes/studio+/index.tsx | 79 +++++++++++++------- package-lock.json | 24 +++--- package.json | 6 +- 11 files changed, 179 insertions(+), 102 deletions(-) create mode 100644 app/components/theme-switcher.tsx diff --git a/app/components/layout/header.tsx b/app/components/layout/header.tsx index 1436892..5b74c1a 100644 --- a/app/components/layout/header.tsx +++ b/app/components/layout/header.tsx @@ -60,7 +60,7 @@ export function HeaderNav({ // : 'shadow-sm' // } > -