Chore: Use react-highlight-words types (#54627)

This commit is contained in:
Josh Hunt 2022-09-02 16:36:44 +01:00 committed by GitHub
parent 53c095aae7
commit 6b197f3fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 2 additions and 8 deletions

View File

@ -149,6 +149,7 @@
"@types/react-calendar": "3.5.1",
"@types/react-color": "3.0.6",
"@types/react-dom": "17.0.14",
"@types/react-highlight-words": "0.16.4",
"@types/react-router-dom": "5.3.3",
"@types/react-table": "7.7.12",
"@types/react-test-renderer": "17.0.1",

View File

@ -1,6 +1,5 @@
import { cx, css } from '@emotion/css';
import React, { forwardRef, HTMLAttributes, useCallback } from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import { GrafanaTheme2 } from '@grafana/data';

View File

@ -1,6 +1,5 @@
import ansicolor from 'ansicolor';
import React, { PureComponent } from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import { findHighlightChunksInText, GrafanaTheme2 } from '@grafana/data';

View File

@ -1,7 +1,6 @@
import { css, cx } from '@emotion/css';
import memoizeOne from 'memoize-one';
import React, { PureComponent } from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import tinycolor from 'tinycolor2';

View File

@ -1,6 +1,5 @@
import { css, cx } from '@emotion/css';
import React from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import { GrafanaTheme } from '@grafana/data';

View File

@ -1,5 +1,4 @@
import React, { useCallback } from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import { Icon, IconName, Button, LinkButton, Card } from '@grafana/ui';

View File

@ -1,6 +1,5 @@
import { css, cx } from '@emotion/css';
import React from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import {

View File

@ -1,5 +1,4 @@
import React, { ReactNode } from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import { selectors } from '@grafana/e2e-selectors';

View File

@ -1,6 +1,5 @@
import { css } from '@emotion/css';
import React, { useCallback, useState } from 'react';
// @ts-ignore
import Highlighter from 'react-highlight-words';
import { SelectableValue, toOption, GrafanaTheme2 } from '@grafana/data';

View File

@ -5231,6 +5231,7 @@ __metadata:
"@types/react-calendar": 3.5.1
"@types/react-color": 3.0.6
"@types/react-dom": 17.0.14
"@types/react-highlight-words": 0.16.4
"@types/react-router-dom": 5.3.3
"@types/react-table": 7.7.12
"@types/react-test-renderer": 17.0.1