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)), Number.parseInt(theme.spacing(2)),
]} ]}
containerPadding={[0, 0]} containerPadding={[0, 0]}
// isDraggable={!isMobileBreakpoint}
// isResizable={!isMobileBreakpoint}
isDraggable={false} isDraggable={false}
isResizable={false} isResizable={false}
onLayoutChange={handleLayoutChange} 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( const handleDeleteChart = useCallback(
async (id: string) => { async (id: string) => {
try { try {
@ -125,12 +114,6 @@ export const ImpactMetrics: FC = () => {
config={config} config={config}
onEdit={handleEditChart} onEdit={handleEditChart}
onDelete={handleDeleteChart} onDelete={handleDeleteChart}
dragHandle={
null
// <StyledDragHandle className='grid-item-drag-handle'>
// <DragHandle fontSize='small' />
// </StyledDragHandle>
}
/> />
), ),
w: existingLayout?.w ?? 6, w: existingLayout?.w ?? 6,
@ -194,10 +177,7 @@ export const ImpactMetrics: FC = () => {
</Button> </Button>
</StyledEmptyState> </StyledEmptyState>
) : charts.length > 0 ? ( ) : charts.length > 0 ? (
<GridLayoutWrapper <GridLayoutWrapper items={gridItems} />
items={gridItems}
// onLayoutChange={handleLayoutChange}
/>
) : null} ) : null}
<ChartConfigModal <ChartConfigModal