Use server actions instead of client-side API calls
This commit is contained in:
parent
5a3127dcb0
commit
aa453954ed
30 changed files with 703 additions and 462 deletions
|
|
@ -11,5 +11,11 @@ type LayoutProps = {
|
|||
};
|
||||
|
||||
export default function Layout({ children }: LayoutProps) {
|
||||
return <InternalLayout>{children}</InternalLayout>;
|
||||
const setupModeActive = process.env.SETUP_MODE === "true";
|
||||
|
||||
return (
|
||||
<InternalLayout setupModeActive={setupModeActive}>
|
||||
{children}
|
||||
</InternalLayout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue