diff --git a/src/ui/routes/teams/$teamId/index.tsx b/src/ui/routes/teams/$teamId/index.tsx index a7a0e843..92e1cd14 100644 --- a/src/ui/routes/teams/$teamId/index.tsx +++ b/src/ui/routes/teams/$teamId/index.tsx @@ -31,6 +31,7 @@ import { useQuery, useSuspenseQuery, useQueryClient } from '@tanstack/react-quer import { createFileRoute, useNavigate } from '@tanstack/react-router' import { MoreHorizontal, PlusIcon } from 'lucide-react' import { useState } from 'react' +import { Switch } from '@/ui/components/ui/switch' import { Input } from '@/ui/components/ui/input' function TeamPage() { @@ -308,14 +309,17 @@ function TeamPage() { Project Settings { - e.stopPropagation() + className="flex items-center justify-between gap-4 cursor-pointer" + onSelect={(e) => { + e.preventDefault() toggleProjectNotificationsMutation.mutate(project) }} > - {project.enableNotification - ? 'Disable Notifications' - : 'Enable Notifications'} + Notification +