diff --git a/apps/web/src/components/ui/grid/SortableItemContext.tsx b/apps/web/src/components/ui/grid/SortableItemContext.tsx index 72214542f..463bef3b0 100644 --- a/apps/web/src/components/ui/grid/SortableItemContext.tsx +++ b/apps/web/src/components/ui/grid/SortableItemContext.tsx @@ -1,5 +1,5 @@ import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core'; -import React, { createContext } from 'react'; +import { createContext } from 'react'; interface Context { attributes: DraggableAttributes; diff --git a/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/DashboardMetricItem.tsx b/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/DashboardMetricItem.tsx index ad0129515..4b6556ce4 100644 --- a/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/DashboardMetricItem.tsx +++ b/apps/web/src/controllers/DashboardController/DashboardViewDashboardController/DashboardContentController/DashboardMetricItem/DashboardMetricItem.tsx @@ -1,11 +1,10 @@ 'use client'; -import React, { useMemo } from 'react'; +import React, { useMemo,useContext } from 'react'; import { useMemoizedFn } from '@/hooks'; import { useDashboardMetric } from './useDashboardMetric'; import { assetParamsToRoute } from '@/lib/assets'; import { MetricCard } from '@/components/ui/metric'; -import { useContext } from 'use-context-selector'; import { SortableItemContext } from '@/components/ui/grid/SortableItemContext'; import { useMetricCardThreeDotMenuItems } from './metricCardThreeDotMenuItems';