added empty editor view and rich editor switch

This commit is contained in:
Fedor Katurov 2023-04-26 15:24:45 +06:00
parent 3f81f6d3b3
commit a08ebe2cbc
6 changed files with 82 additions and 17 deletions
src/modules/layout
components/GridLayout
types

View file

@ -63,6 +63,7 @@ const DefaultLayout = ({
id: panelProps.api.id,
title: panelProps.params.title,
locked,
startEditing: lock,
})}
</GridLayoutItemWrapper>
);
@ -81,7 +82,7 @@ export const GridLayout: FC<GridLayoutProps> = ({ component }) => {
/>
),
}),
[component]
[component, persistLayout]
);
return (

View file

@ -2,4 +2,5 @@ export interface GridLayoutComponentProps {
id: string;
title: string;
locked: boolean;
startEditing: () => void;
}