mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
c06ef4d1d7
* style: scrollbar added in profile summary and sidebar * style: scrollbar added in modals * style: scrollbar added in project setting screens * style: scrollbar added in workspace and profile settings * style: scrollbar added in dropdowns and filters
33 lines
944 B
TypeScript
33 lines
944 B
TypeScript
import { FC, ReactNode } from "react";
|
|
// layout
|
|
import { UserAuthWrapper } from "layouts/auth-layout";
|
|
import { ProfileLayoutSidebar } from "layouts/settings-layout";
|
|
// components
|
|
import { CommandPalette } from "components/command-palette";
|
|
|
|
interface IProfileSettingsLayout {
|
|
children: ReactNode;
|
|
header?: ReactNode;
|
|
}
|
|
|
|
export const ProfileSettingsLayout: FC<IProfileSettingsLayout> = (props) => {
|
|
const { children, header } = props;
|
|
|
|
return (
|
|
<>
|
|
<CommandPalette />
|
|
<UserAuthWrapper>
|
|
<div className="relative flex h-screen w-full overflow-hidden">
|
|
<ProfileLayoutSidebar />
|
|
<main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">
|
|
{header}
|
|
<div className="h-full w-full overflow-x-hidden overflow-y-scroll">
|
|
{children}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</UserAuthWrapper>
|
|
</>
|
|
);
|
|
};
|