refactor: enhance workspace and project wrapper modularity (#6207)

This commit is contained in:
Prateek Shourya 2024-12-16 19:01:37 +05:30 committed by GitHub
parent 438cc33046
commit 4507802aba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 62 additions and 30 deletions

View file

@ -0,0 +1,15 @@
import { FC } from "react";
import { observer } from "mobx-react";
// layouts
import { WorkspaceAuthWrapper as CoreWorkspaceAuthWrapper } from "@/layouts/auth-layout";
export type IWorkspaceAuthWrapper = {
children: React.ReactNode;
};
export const WorkspaceAuthWrapper: FC<IWorkspaceAuthWrapper> = observer((props) => {
// props
const { children } = props;
return <CoreWorkspaceAuthWrapper>{children}</CoreWorkspaceAuthWrapper>;
});