Skip to content

Commit

Permalink
fix(card): fix card style error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Dec 2, 2022
1 parent a7bc3ed commit 60ac49c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/card/src/components/CheckCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ const CheckCard: React.FC<CheckCardProps> & {
[`${prefixCls}-multiple`]: multiple,
[`${prefixCls}-disabled`]: disabled,
[`${prefixCls}-bordered`]: bordered,
hashId,
});

const metaDom = useMemo(() => {
Expand Down
3 changes: 1 addition & 2 deletions packages/card/src/components/Statistic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ const Statistic: React.FC<StatisticProps> = (props) => {
const wrapperClass = classNames(`${prefixCls}-wrapper`, hashId);
const contentClass = classNames(`${prefixCls}-content`, hashId);

const statisticClassName = classNames({
hashId,
const statisticClassName = classNames(hashId, {
[`${prefixCls}-layout-${layout}`]: layout,
[`${prefixCls}-trend-${trend}`]: trend,
});
Expand Down

0 comments on commit 60ac49c

Please sign in to comment.