Generate Token through Auth0

This commit is contained in:
Charles Bochet
2023-01-27 12:12:04 +01:00
parent 54acb16db8
commit 8e0dc44bf6
21 changed files with 3616 additions and 2344 deletions

View File

@ -9,12 +9,18 @@ const StyledLayout = styled.div`
type OwnProps = {
children: JSX.Element;
user?: {
email: string;
first_name: string;
last_name: string;
tenant: { id: string; name: string };
};
};
function AppLayout({ children }: OwnProps) {
function AppLayout({ children, user }: OwnProps) {
return (
<StyledLayout>
<Navbar />
<Navbar user={user} />
<div>{children}</div>
</StyledLayout>
);