mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
cleanup
This commit is contained in:
parent
dcb649436d
commit
2425a48287
@ -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}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user