From d8704aa4b559519415516eb4a73beabb25af0f34 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 26 Dec 2024 17:24:35 +0300 Subject: [PATCH] apps/web: add dark mode --- apps/web/app/(main)/profile/page.tsx | 5 +-- apps/web/app/layout.tsx | 9 +++-- apps/web/components/profile/profile-field.tsx | 2 +- apps/web/package.json | 1 + apps/web/providers/theme-provider.tsx | 35 +++++++++++++++++++ pnpm-lock.yaml | 14 ++++++++ 6 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 apps/web/providers/theme-provider.tsx diff --git a/apps/web/app/(main)/profile/page.tsx b/apps/web/app/(main)/profile/page.tsx index a842a55..557785f 100644 --- a/apps/web/app/(main)/profile/page.tsx +++ b/apps/web/app/(main)/profile/page.tsx @@ -15,7 +15,7 @@ export default async function ProfilePage() { const photoUrl = user?.photoUrl ?? 'https://github.com/shadcn.png'; return ( -
+
@@ -36,7 +36,8 @@ export default async function ProfilePage() { {user?.role === 'client' && (