From cecc5e0bab82ef90a764319edf96c9259d4693a2 Mon Sep 17 00:00:00 2001 From: headlessdev Date: Thu, 17 Apr 2025 13:17:22 +0200 Subject: [PATCH] Add notification settings with alert dialog in Settings component --- app/dashboard/settings/Settings.tsx | 56 ++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/app/dashboard/settings/Settings.tsx b/app/dashboard/settings/Settings.tsx index 171935f..3d4d4f5 100644 --- a/app/dashboard/settings/Settings.tsx +++ b/app/dashboard/settings/Settings.tsx @@ -33,7 +33,19 @@ import axios from "axios"; import Cookies from "js-cookie"; import { Button } from "@/components/ui/button"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert" -import { AlertCircle, Check, Palette, User } from "lucide-react"; +import { AlertCircle, Check, Palette, User, Bell } from "lucide-react"; + +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, + AlertDialogTrigger, +} from "@/components/ui/alert-dialog" export default function Settings() { const { theme, setTheme } = useTheme(); @@ -289,6 +301,48 @@ export default function Settings() { + + + + +
+ +

Notifications

+
+
+ +
+ Set up Notifications to get notified when an application goes offline or online. +
+ + + + + + + Add Notification + + + + + Cancel + Continue + + + +
+