-
-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: extract SpaceSettings container component (#1053)
- Loading branch information
Showing
4 changed files
with
99 additions
and
79 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
25 changes: 25 additions & 0 deletions
25
apps/nextjs-app/src/features/app/components/SpaceSettingContainer.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
interface SpaceSettingContainerProps { | ||
title: string; | ||
description?: string; | ||
className?: string; | ||
children: React.ReactNode | React.ReactNode[]; | ||
} | ||
|
||
export const SpaceSettingContainer = ({ | ||
title, | ||
description, | ||
className, | ||
children, | ||
}: SpaceSettingContainerProps) => { | ||
return ( | ||
<div className="h-screen w-full overflow-y-auto overflow-x-hidden"> | ||
<div className="w-full px-8 py-6"> | ||
<div className="border-b pb-4"> | ||
<h1 className="text-3xl font-semibold">{title}</h1> | ||
{description && <div className="mt-3 text-sm text-slate-500">{description}</div>} | ||
</div> | ||
<div className={className}>{children}</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
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