Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add session provider to admin

Steven Tey6a24f10d3722
diff --git a/apps/web/app/admin.dub.co/layout.tsx b/apps/web/app/admin.dub.co/layout.tsx
new file mode 100644
index 0000000000..65c153e966
--- /dev/null
+++ b/apps/web/app/admin.dub.co/layout.tsx
@@ -0,0 +1,8 @@
+"use client";
+
+import { SessionProvider } from "next-auth/react";
+import { ReactNode } from "react";
+
+export default function AdminLayout({ children }: { children: ReactNode }) {
+ return <SessionProvider>{children}</SessionProvider>;
+}