From 4ddbac5dd15022b87a7fe3bcc5773c45ea440db0 Mon Sep 17 00:00:00 2001 From: viettranx Date: Tue, 10 Mar 2026 21:28:45 +0700 Subject: [PATCH] feat: enhance notification settings UI by replacing the checkbox with a Switch component and adding new styling. --- ui/web/src/pages/teams/team-settings-tab.tsx | 30 +++++++++++--------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/ui/web/src/pages/teams/team-settings-tab.tsx b/ui/web/src/pages/teams/team-settings-tab.tsx index 6c5f95a2..67051f21 100644 --- a/ui/web/src/pages/teams/team-settings-tab.tsx +++ b/ui/web/src/pages/teams/team-settings-tab.tsx @@ -1,8 +1,9 @@ import { useState, useEffect, useCallback } from "react"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; +import { Switch } from "@/components/ui/switch"; import { Combobox } from "@/components/ui/combobox"; -import { X, Save, Check } from "lucide-react"; +import { X, Save, Check, Bell } from "lucide-react"; import { useTranslation } from "react-i18next"; import { CHANNEL_TYPES } from "@/constants/channels"; import type { TeamData, TeamAccessSettings } from "@/types/team"; @@ -183,21 +184,24 @@ export function TeamSettingsTab({ teamId, team, onSaved }: TeamSettingsTabProps) {/* Notifications */}

{t("settings.notifications")}

-
-