mirror of https://github.com/buster-so/buster.git
Fixed context selector
This commit is contained in:
parent
115a6da7e9
commit
fe22aabbbb
|
@ -1,5 +1,5 @@
|
||||||
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
|
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
|
||||||
import React, { createContext } from 'react';
|
import { createContext } from 'react';
|
||||||
|
|
||||||
interface Context {
|
interface Context {
|
||||||
attributes: DraggableAttributes;
|
attributes: DraggableAttributes;
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo,useContext } from 'react';
|
||||||
import { useMemoizedFn } from '@/hooks';
|
import { useMemoizedFn } from '@/hooks';
|
||||||
import { useDashboardMetric } from './useDashboardMetric';
|
import { useDashboardMetric } from './useDashboardMetric';
|
||||||
import { assetParamsToRoute } from '@/lib/assets';
|
import { assetParamsToRoute } from '@/lib/assets';
|
||||||
import { MetricCard } from '@/components/ui/metric';
|
import { MetricCard } from '@/components/ui/metric';
|
||||||
import { useContext } from 'use-context-selector';
|
|
||||||
import { SortableItemContext } from '@/components/ui/grid/SortableItemContext';
|
import { SortableItemContext } from '@/components/ui/grid/SortableItemContext';
|
||||||
import { useMetricCardThreeDotMenuItems } from './metricCardThreeDotMenuItems';
|
import { useMetricCardThreeDotMenuItems } from './metricCardThreeDotMenuItems';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue