chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
import { createDevApp } from '@backstage/dev-utils';
|
||||
import { Schema } from 'jsonschema';
|
||||
import React from 'react';
|
||||
import Observable from 'zen-observable';
|
||||
import { configSchemaApiRef } from '../src/api';
|
||||
import { ConfigSchemaResult } from '../src/api/types';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import React, { useMemo } from 'react';
|
||||
import { useMemo } from 'react';
|
||||
import useObservable from 'react-use/esm/useObservable';
|
||||
import { configSchemaApiRef } from '../../api';
|
||||
import { SchemaViewer } from '../SchemaViewer';
|
||||
|
||||
@@ -21,7 +21,7 @@ import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
|
||||
import TreeItem, { TreeItemProps } from '@material-ui/lab/TreeItem';
|
||||
import TreeView from '@material-ui/lab/TreeView';
|
||||
import { Schema } from 'jsonschema';
|
||||
import React, { ReactNode, useMemo, useRef } from 'react';
|
||||
import { ReactNode, useMemo, useRef } from 'react';
|
||||
import { useScrollTargets } from '../ScrollTargetsContext';
|
||||
|
||||
const StyledTreeItem = withStyles(theme =>
|
||||
|
||||
@@ -26,7 +26,7 @@ import TableRow from '@material-ui/core/TableRow';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { Schema } from 'jsonschema';
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { useScrollTargets } from '../ScrollTargetsContext/ScrollTargetsContext';
|
||||
import { SchemaViewProps } from './types';
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { Schema } from 'jsonschema';
|
||||
import React from 'react';
|
||||
import { SchemaViewer } from './SchemaViewer';
|
||||
|
||||
describe('SchemaViewer', () => {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
import Box from '@material-ui/core/Box';
|
||||
import Paper from '@material-ui/core/Paper';
|
||||
import { Schema } from 'jsonschema';
|
||||
import React from 'react';
|
||||
import { SchemaView } from '../SchemaView';
|
||||
import { SchemaBrowser } from '../SchemaBrowser';
|
||||
import { ScrollTargetsProvider } from '../ScrollTargetsContext/ScrollTargetsContext';
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import React, { createContext, ReactNode, useContext } from 'react';
|
||||
import { createContext, ReactNode, useContext } from 'react';
|
||||
|
||||
class ScrollTargetsForwarder {
|
||||
private readonly listeners = new Map<string, () => void>();
|
||||
|
||||
Reference in New Issue
Block a user