Grafana-[data,sql,ui]: Use named imports (#105734)
grafana-[data,sql,ui]: use named imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { isNumber, set, unset, get, cloneDeep } from 'lodash';
|
||||
import { useMemo, useRef } from 'react';
|
||||
import usePrevious from 'react-use/lib/usePrevious';
|
||||
import { usePrevious } from 'react-use';
|
||||
|
||||
import { ThresholdsMode, VariableFormatID } from '@grafana/schema';
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { css } from '@emotion/css';
|
||||
import { useState, useMemo, useEffect } from 'react';
|
||||
import { useAsyncFn } from 'react-use';
|
||||
import useDebounce from 'react-use/lib/useDebounce';
|
||||
import { useAsyncFn, useDebounce } from 'react-use';
|
||||
|
||||
import { formattedValueToString, getValueFormat, TimeRange } from '@grafana/data';
|
||||
import { Icon, Spinner, useTheme2 } from '@grafana/ui';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { useAsync } from 'react-use';
|
||||
|
||||
import { SelectableValue, TypedVariableModel } from '@grafana/data';
|
||||
import { getTemplateSrv } from '@grafana/runtime';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { autoUpdate, flip, offset, shift, useFloating } from '@floating-ui/react
|
||||
import Prism, { Grammar, LanguageMap } from 'prismjs';
|
||||
import { memo, useEffect, useRef, useState } from 'react';
|
||||
import * as React from 'react';
|
||||
import usePrevious from 'react-use/lib/usePrevious';
|
||||
import { usePrevious } from 'react-use';
|
||||
import { Value } from 'slate';
|
||||
import Plain from 'slate-plain-serializer';
|
||||
import { Editor } from 'slate-react';
|
||||
|
||||
@@ -2,7 +2,7 @@ import { css, cx } from '@emotion/css';
|
||||
import { groupBy, capitalize } from 'lodash';
|
||||
import { useRef, useMemo } from 'react';
|
||||
import * as React from 'react';
|
||||
import useClickAway from 'react-use/lib/useClickAway';
|
||||
import { useClickAway } from 'react-use';
|
||||
|
||||
import { VariableSuggestion, GrafanaTheme2 } from '@grafana/data';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { css, cx } from '@emotion/css';
|
||||
import { forwardRef, HTMLProps, ReactNode, useContext } from 'react';
|
||||
import useMeasure from 'react-use/lib/useMeasure';
|
||||
import { useMeasure } from 'react-use';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { action } from '@storybook/addon-actions';
|
||||
import { Meta, StoryFn } from '@storybook/react';
|
||||
import { useState } from 'react';
|
||||
import * as React from 'react';
|
||||
import { AsyncState } from 'react-use/lib/useAsync';
|
||||
import { type AsyncState } from 'react-use/lib/useAsync';
|
||||
|
||||
import { SelectableValue } from '@grafana/data';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { isObject } from 'lodash';
|
||||
import { HTMLProps } from 'react';
|
||||
import * as React from 'react';
|
||||
import { useAsyncFn } from 'react-use';
|
||||
import { AsyncState } from 'react-use/lib/useAsync';
|
||||
import { type AsyncState } from 'react-use/lib/useAsync';
|
||||
|
||||
import { SelectableValue } from '@grafana/data';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { cx, css } from '@emotion/css';
|
||||
import { HTMLProps, useRef, useState } from 'react';
|
||||
import * as React from 'react';
|
||||
import useClickAway from 'react-use/lib/useClickAway';
|
||||
import { useClickAway } from 'react-use';
|
||||
|
||||
import { useStyles2 } from '../../themes';
|
||||
import { measureText } from '../../utils/measureText';
|
||||
|
||||
Reference in New Issue
Block a user