-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: enhance workspace and project wrapper modularity (#6207)
- Loading branch information
1 parent
6172c64
commit d38b637
Showing
10 changed files
with
62 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
web/app/[workspaceSlug]/(projects)/projects/(detail)/layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { FC } from "react"; | ||
import { observer } from "mobx-react"; | ||
// layouts | ||
import { ProjectAuthWrapper as CoreProjectAuthWrapper } from "@/layouts/auth-layout"; | ||
|
||
export type IProjectAuthWrapper = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => { | ||
// props | ||
const { children } = props; | ||
|
||
return <CoreProjectAuthWrapper>{children}</CoreProjectAuthWrapper>; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "ce/layouts/project-wrapper"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "ce/layouts/workspace-wrapper"; |