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 6, 2021
1 parent f091053 commit 0ef3546
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion BtnLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {Link} from '@mxjs/router';
import {Button} from '@mxjs/bootstrap';
import PropTypes from 'prop-types';
Expand Down
4 changes: 2 additions & 2 deletions DeleteLink.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { Component } from 'react';
import $ from 'miaoxing';
import PropTypes from 'prop-types';

class DeleteLink extends React.Component {
class DeleteLink extends Component {
static propTypes = {
message: PropTypes.string,
href: PropTypes.string,
Expand Down
1 change: 0 additions & 1 deletion EditLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {Link} from '@mxjs/router';
import PropTypes from 'prop-types';

Expand Down
1 change: 0 additions & 1 deletion ListBtn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import BtnLink from './BtnLink';
import PropTypes from 'prop-types';

Expand Down
3 changes: 1 addition & 2 deletions NewBtn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import BtnLink from './BtnLink';
import PropTypes from 'prop-types';

Expand All @@ -11,4 +10,4 @@ NewBtn.propTypes = {
children: PropTypes.node,
};

export default NewBtn;
export default NewBtn;
1 change: 0 additions & 1 deletion __tests__/BtnLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import {BtnLink} from '../';
import {MemoryRouter} from 'react-router';
import {render} from '@testing-library/react';
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@mxjs/router": "miaoxing/mxjs-router",
"@mxjs/router-modal": "miaoxing/mxjs-router-modal",
"babel-preset-miaoxing": "miaoxing/babel-preset-miaoxing",
"jest-preset-miaoxing": "miaoxing/jest-preset-miaoxing"
"jest-preset-miaoxing": "miaoxing/jest-preset-miaoxing",
"@miaoxing/dev": "miaoxing/dev"
}
}

0 comments on commit 0ef3546

Please sign in to comment.