Page layout refactoring (#14535)
In this PR: - Refactored the page layout renderer - Converted all the states to component states - Removed the page layout edition in settings TODOs in next PRs: - Fix bug with the drag selector not taking the scroll into account to display the dragged area - Readd the tab edition in edit mode
This commit is contained in:
-29
@@ -1,29 +0,0 @@
|
||||
import { PageBody } from '@/ui/layout/page/components/PageBody';
|
||||
import { PageContainer } from '@/ui/layout/page/components/PageContainer';
|
||||
import { PageHeader } from '@/ui/layout/page/components/PageHeader';
|
||||
import {
|
||||
Breadcrumb,
|
||||
type BreadcrumbProps,
|
||||
} from '@/ui/navigation/bread-crumb/components/Breadcrumb';
|
||||
import { type ReactNode } from 'react';
|
||||
|
||||
type SettingsPageFullWidthContainerProps = {
|
||||
children: ReactNode;
|
||||
links: BreadcrumbProps['links'];
|
||||
actionButton?: ReactNode;
|
||||
};
|
||||
|
||||
export const SettingsPageFullWidthContainer = ({
|
||||
children,
|
||||
links,
|
||||
actionButton,
|
||||
}: SettingsPageFullWidthContainerProps) => {
|
||||
return (
|
||||
<PageContainer>
|
||||
<PageHeader title={<Breadcrumb links={links} />}>
|
||||
{actionButton}
|
||||
</PageHeader>
|
||||
<PageBody>{children}</PageBody>
|
||||
</PageContainer>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user