diff options
| author | Haishan <[email protected]> | 2020-05-14 22:50:48 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-05-14 22:50:48 +0800 |
| commit | faf4cba37c8dd123600a62ec4feb39cccd851bcb (patch) | |
| tree | 144bc503428ff891e74684da487f04e2fce90d57 /src/components/Icon.js | |
| parent | aceb1b4a365b1d86d66c0538011580eb01270219 (diff) | |
chore: lib classnames -> clsx
Diffstat (limited to 'src/components/Icon.js')
| -rw-r--r-- | src/components/Icon.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Icon.js b/src/components/Icon.js index 806f455..a14d4e8 100644 --- a/src/components/Icon.js +++ b/src/components/Icon.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import cx from 'classnames'; +import cx from 'clsx'; const Icon = ({ id, width = 20, height = 20, className, ...props }) => { const c = cx('icon', id, className); @@ -16,7 +16,7 @@ Icon.propTypes = { id: PropTypes.string.isRequired, width: PropTypes.number, height: PropTypes.number, - className: PropTypes.string + className: PropTypes.string, }; export default React.memo(Icon); |
