Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: notification settings link not navigating (#3160)

Harsh Kumarb339d275250a
diff --git a/apps/screenpipe-app-tauri/components/notification-bell.tsx b/apps/screenpipe-app-tauri/components/notification-bell.tsx
index 41d514431..b88bd8747 100644
--- a/apps/screenpipe-app-tauri/components/notification-bell.tsx
+++ b/apps/screenpipe-app-tauri/components/notification-bell.tsx
@@ -15,7 +15,7 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover";
-import { openSettingsWindow } from "@/lib/utils/window";
+import { useRouter } from "next/navigation";
import { showChatWithPrefill } from "@/lib/chat-utils";
interface NotificationEntry {
@@ -68,6 +68,7 @@ export function NotificationBell() {
const [history, setHistory] = useState<NotificationEntry[]>([]);
const [open, setOpen] = useState(false);
const [expandedId, setExpandedId] = useState<string | null>(null);
+ const router = useRouter();
const loadHistory = useCallback(async () => {
try {
@@ -329,7 +330,7 @@ export function NotificationBell() {
<button
onClick={() => {
setOpen(false);
- openSettingsWindow("notifications");
+ router.push("/settings?section=notifications");
}}
className="text-[10px] text-muted-foreground hover:text-foreground transition-colors"
>