plane/web/layouts/settings-layout/profile/layout.tsx
Aaryan Khandelwal 66bc1cb167 chore: update profile settings layout (#2925)
* chore: update profile layout

* fix: multiple workspaces

* chore: removed breadcrumbs

* chore: fix sidebar collapsed state
2023-12-07 17:51:57 +05:30

31 lines
916 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 flex-col h-full w-full overflow-hidden bg-custom-background-100">
{header}
<div className="h-full w-full overflow-x-hidden overflow-y-scroll">{children}</div>
</main>
</div>
</UserAuthWrapper>
</>
);
};