mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
709d3a115b
* [WEB-711] style: profile and its settings pages responsiveness * chore: linting issues fix * fix: mobile-view padding --------- Co-authored-by: LAKHAN BAHETI <lakhanbaheti9@gmail.com>
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import { FC, ReactNode } from "react";
|
|
// layout
|
|
import { SidebarHamburgerToggle } from "@/components/core/sidebar/sidebar-menu-hamburger-toggle";
|
|
import { PreferencesMobileHeader } from "@/components/profile/preferences/preferences-mobile-header";
|
|
import { useApplication } from "@/hooks/store";
|
|
import { ProfileSettingsLayout } from "@/layouts/settings-layout";
|
|
import { ProfilePreferenceSettingsSidebar } from "./sidebar";
|
|
|
|
interface IProfilePreferenceSettingsLayout {
|
|
children: ReactNode;
|
|
header?: ReactNode;
|
|
}
|
|
|
|
export const ProfilePreferenceSettingsLayout: FC<IProfilePreferenceSettingsLayout> = (props) => {
|
|
const { children, header } = props;
|
|
const { theme: themeStore } = useApplication();
|
|
|
|
|
|
return (
|
|
<ProfileSettingsLayout
|
|
header={
|
|
<div className="md:hidden flex flex-shrink-0 gap-4 items-center justify-start border-b border-custom-border-200 p-4">
|
|
<SidebarHamburgerToggle onClick={() => themeStore.toggleSidebar()} />
|
|
</div>
|
|
}
|
|
>
|
|
<div className="h-full">
|
|
<PreferencesMobileHeader />
|
|
<div className="relative flex h-full w-full overflow-hidden">
|
|
<ProfilePreferenceSettingsSidebar />
|
|
<main className="relative flex h-full w-full flex-col overflow-hidden bg-custom-background-100">
|
|
{header}
|
|
<div className="h-full w-full">{children}</div>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</ProfileSettingsLayout>
|
|
);
|
|
};
|