From 09afe05835ee1224cdafc9e58869da9099bfdfbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 14 Sep 2018 18:29:51 +0800 Subject: [PATCH] fix #2150 remove no use style --- src/components/DescriptionList/Description.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/components/DescriptionList/Description.js b/src/components/DescriptionList/Description.js index 002ad284..fce9fd3c 100644 --- a/src/components/DescriptionList/Description.js +++ b/src/components/DescriptionList/Description.js @@ -1,20 +1,15 @@ import React from 'react'; import PropTypes from 'prop-types'; -import classNames from 'classnames'; import { Col } from 'antd'; import styles from './index.less'; import responsive from './responsive'; -const Description = ({ term, column, className, children, ...restProps }) => { - const clsString = classNames(styles.description, className); - return ( - - {term &&
{term}
} - {children !== null && - children !== undefined &&
{children}
} - - ); -}; +const Description = ({ term, column, children, ...restProps }) => ( + + {term &&
{term}
} + {children !== null && children !== undefined &&
{children}
} + +); Description.defaultProps = { term: '', -- GitLab