From 4acba662b6cfc3c70b74be76927d423aaf5163d7 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 3 Nov 2025 19:11:50 +0100 Subject: [PATCH] Refactor theme toggle layout in ProfileSettings component --- .../settings/account/ProfileSettings.tsx | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/app/src/components/settings/account/ProfileSettings.tsx b/app/src/components/settings/account/ProfileSettings.tsx index c53085b..641410f 100644 --- a/app/src/components/settings/account/ProfileSettings.tsx +++ b/app/src/components/settings/account/ProfileSettings.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { Box, Stack, TextInput, Group, Text, Switch } from '@mantine/core'; -import { IconMoon, IconSun } from '@tabler/icons-react'; import { useAuth } from '@/contexts/AuthContext'; import { Theme, type UserProfileSettings } from '@/types/models'; @@ -44,24 +43,21 @@ const ProfileSettings: React.FC = ({ placeholder="Enter email" data-testid="email-input" /> - -
- - Default Theme - - - Sets the default theme for new workspaces - -
- } - offLabel={} - data-testid="theme-toggle" - /> -
+ + +
+ Default Dark Mode + + Sets the default theme for new workspaces + +
+ +
+
);