-
-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: better auth routes organisation
- Loading branch information
Showing
6 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { TRPCReactProvider } from '@/lib/trpc/react'; | ||
import { ClerkProvider } from '@clerk/nextjs'; | ||
import { dark } from '@clerk/themes'; | ||
import type { PropsWithChildren } from 'react'; | ||
|
||
/** | ||
* The layout of the dashboard routes, this supplies the clerk & trpc providers mainly. | ||
* @param props The props of the layout. | ||
* @param props.children The children of the layout, which are all the routes under this route group. | ||
* @returns A react component. | ||
*/ | ||
export default function DashboardLayout({ children }: PropsWithChildren) { | ||
return ( | ||
<ClerkProvider | ||
appearance={{ baseTheme: dark, variables: { colorPrimary: '#F9617B' } }} | ||
> | ||
<TRPCReactProvider>{children}</TRPCReactProvider> | ||
</ClerkProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters