feat: global login dialog with useRequireAuth hook for 401 auth gating

This commit is contained in:
zetaloop
2026-02-20 18:50:46 +08:00
parent 0403c12ccc
commit 07754069c1
5 changed files with 53 additions and 2 deletions
+5 -1
View File
@@ -2,6 +2,7 @@
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { useState } from "react"
import { GlobalLoginDialog } from "@/components/global-login-dialog"
import { TooltipProvider } from "@/components/ui/tooltip"
export function Providers({ children }: { children: React.ReactNode }) {
@@ -19,7 +20,10 @@ export function Providers({ children }: { children: React.ReactNode }) {
return (
<QueryClientProvider client={queryClient}>
<TooltipProvider>{children}</TooltipProvider>
<TooltipProvider>
{children}
<GlobalLoginDialog />
</TooltipProvider>
</QueryClientProvider>
)
}