Skip to content

Commit

Permalink
style(eslint): 'React' is defined but never used no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Jul 7, 2021
1 parent 32de47a commit 6b25446
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion CTableDeleteLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import PropTypes from 'prop-types';
import TableDeleteLink from './TableDeleteLink';
import curUrl from '@mxjs/cur-url';
Expand Down
2 changes: 1 addition & 1 deletion Table.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useEffect, useRef} from 'react';
import { useEffect, useRef } from 'react';
import ProTable from '@ant-design/pro-table';
import appendUrl from 'append-url';
import $ from 'miaoxing';
Expand Down
4 changes: 2 additions & 2 deletions TableDeleteLink.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { Component } from 'react';
import PropTypes from 'prop-types';
import {withTable} from './TableProvider';
import {DeleteLink} from '@mxjs/a-button';

class TableDeleteLink extends React.Component {
class TableDeleteLink extends Component {
static propTypes = {
table: PropTypes.shape({
reload: PropTypes.func.isRequired,
Expand Down
2 changes: 1 addition & 1 deletion TableProvider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import PropTypes from 'prop-types';

const TableContext = React.createContext({});
Expand Down
1 change: 0 additions & 1 deletion __tests__/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Table from '../Table';
import $ from 'miaoxing';
import {render, screen, waitForElementToBeRemoved} from '@testing-library/react';
Expand Down
4 changes: 2 additions & 2 deletions util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import { useMemo } from 'react';

class TableStore {
hooked = false;
Expand All @@ -17,7 +17,7 @@ class TableStore {
}

export const useTable = () => {
const table = React.useMemo(() => {
const table = useMemo(() => {
return new TableStore();
}, []);
return [table];
Expand Down

0 comments on commit 6b25446

Please sign in to comment.