1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
This commit is contained in:
Tymoteusz Czech 2025-09-08 16:17:44 +02:00
parent dcb649436d
commit 2425a48287
No known key found for this signature in database
GPG Key ID: 133555230D88D75F
2 changed files with 1 additions and 23 deletions

View File

@ -134,8 +134,6 @@ export const GridLayoutWrapper: FC<GridLayoutWrapperProps> = ({
Number.parseInt(theme.spacing(2)),
]}
containerPadding={[0, 0]}
// isDraggable={!isMobileBreakpoint}
// isResizable={!isMobileBreakpoint}
isDraggable={false}
isResizable={false}
onLayoutChange={handleLayoutChange}

View File

@ -90,17 +90,6 @@ export const ImpactMetrics: FC = () => {
}
};
// const handleLayoutChange = useCallback(
// async (layout: any[]) => {
// try {
// await updateLayout(layout as LayoutItem[]);
// } catch (error) {
// setToastApiError(formatUnknownError(error));
// }
// },
// [updateLayout, setToastApiError],
// );
const handleDeleteChart = useCallback(
async (id: string) => {
try {
@ -125,12 +114,6 @@ export const ImpactMetrics: FC = () => {
config={config}
onEdit={handleEditChart}
onDelete={handleDeleteChart}
dragHandle={
null
// <StyledDragHandle className='grid-item-drag-handle'>
// <DragHandle fontSize='small' />
// </StyledDragHandle>
}
/>
),
w: existingLayout?.w ?? 6,
@ -194,10 +177,7 @@ export const ImpactMetrics: FC = () => {
</Button>
</StyledEmptyState>
) : charts.length > 0 ? (
<GridLayoutWrapper
items={gridItems}
// onLayoutChange={handleLayoutChange}
/>
<GridLayoutWrapper items={gridItems} />
) : null}
<ChartConfigModal