mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 12:41:36 +10:00
wip: refresh design
This commit is contained in:
15
apps/web/src/providers/next-auth.tsx
Normal file
15
apps/web/src/providers/next-auth.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Session } from 'next-auth';
|
||||
import { SessionProvider } from 'next-auth/react';
|
||||
|
||||
export type NextAuthProviderProps = {
|
||||
session?: Session | null;
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export const NextAuthProvider = ({ session, children }: NextAuthProviderProps) => {
|
||||
return <SessionProvider session={session}>{children}</SessionProvider>;
|
||||
};
|
||||
13
apps/web/src/providers/plausible.tsx
Normal file
13
apps/web/src/providers/plausible.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import NextPlausibleProvider from 'next-plausible';
|
||||
|
||||
export type PlausibleProviderProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export const PlausibleProvider = ({ children }: PlausibleProviderProps) => {
|
||||
return <NextPlausibleProvider domain="documenso.com">{children}</NextPlausibleProvider>;
|
||||
};
|
||||
Reference in New Issue
Block a user