diff --git a/BtnLink.js b/BtnLink.js index efa116f..e7f3fd7 100644 --- a/BtnLink.js +++ b/BtnLink.js @@ -1,4 +1,3 @@ -import React from 'react'; import {Link} from '@mxjs/router'; import {Button} from '@mxjs/bootstrap'; import PropTypes from 'prop-types'; diff --git a/DeleteLink.js b/DeleteLink.js index 6383305..765df13 100644 --- a/DeleteLink.js +++ b/DeleteLink.js @@ -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, diff --git a/EditLink.js b/EditLink.js index 6f3a7be..5a108bd 100644 --- a/EditLink.js +++ b/EditLink.js @@ -1,4 +1,3 @@ -import React from 'react'; import {Link} from '@mxjs/router'; import PropTypes from 'prop-types'; diff --git a/ListBtn.js b/ListBtn.js index 767891f..91823c0 100644 --- a/ListBtn.js +++ b/ListBtn.js @@ -1,4 +1,3 @@ -import React from 'react'; import BtnLink from './BtnLink'; import PropTypes from 'prop-types'; diff --git a/NewBtn.js b/NewBtn.js index b30a70b..dc9bf98 100644 --- a/NewBtn.js +++ b/NewBtn.js @@ -1,4 +1,3 @@ -import React from 'react'; import BtnLink from './BtnLink'; import PropTypes from 'prop-types'; @@ -11,4 +10,4 @@ NewBtn.propTypes = { children: PropTypes.node, }; -export default NewBtn; \ No newline at end of file +export default NewBtn; diff --git a/__tests__/BtnLink.js b/__tests__/BtnLink.js index 44433b2..5e6228d 100644 --- a/__tests__/BtnLink.js +++ b/__tests__/BtnLink.js @@ -1,4 +1,3 @@ -import React from 'react'; import {BtnLink} from '../'; import {MemoryRouter} from 'react-router'; import {render} from '@testing-library/react'; diff --git a/package.json b/package.json index c922655..49aea1d 100644 --- a/package.json +++ b/package.json @@ -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" } }