From 80ee2faed89ad7798d5e789ca9596a9ae0a5d369 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Thu, 12 Feb 2026 20:14:01 -0600 Subject: [PATCH] fix: Replace circle toggle with MUI Switch pill style (refs #148) EmailNotificationToggle used a custom button-based toggle that rendered as a circle. Replaced with MUI Switch component to match the pill-style toggles used on the SettingsPage throughout the app. Co-Authored-By: Claude Opus 4.6 --- .../components/EmailNotificationToggle.tsx | 39 ++++++------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/frontend/src/features/notifications/components/EmailNotificationToggle.tsx b/frontend/src/features/notifications/components/EmailNotificationToggle.tsx index a82e4ca..5203a94 100644 --- a/frontend/src/features/notifications/components/EmailNotificationToggle.tsx +++ b/frontend/src/features/notifications/components/EmailNotificationToggle.tsx @@ -1,9 +1,10 @@ /** * @ai-summary Email notification toggle component - * @ai-context Mobile-first responsive toggle switch for email notifications + * @ai-context Uses MUI Switch to match SettingsPage pill-style toggles */ import React from 'react'; +import { Box, Switch, Typography } from '@mui/material'; interface EmailNotificationToggleProps { enabled: boolean; @@ -19,32 +20,16 @@ export const EmailNotificationToggle: React.FC = ( className = '', }) => { return ( -
- - -
+ + onChange(e.target.checked)} + color="primary" + inputProps={{ 'aria-label': label }} + /> + ); };