mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
add login portal and traefik middleware auth for testing redirect login
This commit is contained in:
15
src/providers/LandingProvider.tsx
Normal file
15
src/providers/LandingProvider.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
"use client";
|
||||
|
||||
import { UserContext } from "@app/contexts/userContext";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
type LandingProviderProps = {
|
||||
user: any;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
export function LandingProvider({ user, children }: LandingProviderProps) {
|
||||
return <UserContext.Provider value={user}>{children}</UserContext.Provider>;
|
||||
}
|
||||
|
||||
export default LandingProvider;
|
||||
Reference in New Issue
Block a user