refactor: enhance workspace and project wrapper modularity (#6207)
This commit is contained in:
parent
438cc33046
commit
4507802aba
10 changed files with 62 additions and 30 deletions
15
web/ce/layouts/workspace-wrapper.tsx
Normal file
15
web/ce/layouts/workspace-wrapper.tsx
Normal 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>;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue