Skip to content

Commit

Permalink
fix(table): sort icon style (#1384)
Browse files Browse the repository at this point in the history
* fix(table): sort icon style

* chore: update snapshot
  • Loading branch information
uyarn authored Aug 29, 2022
1 parent 145b72c commit 51ca075
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 296 deletions.
8 changes: 3 additions & 5 deletions src/table/SorterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ export default function SorterButton(props: SorterButtonProps) {
const tips = direction === props.sortOrder ? cancelTips : tooltips[direction];
if (props.hideSortTips ?? locale.hideSortTips) return getSortIcon(direction, activeClass);
return (
<div key={direction} className={tableSortClasses.iconDirection[direction]}>
<Tooltip content={tips} placement="right" {...props.tooltipProps} showArrow={false}>
{getSortIcon(direction, activeClass)}
</Tooltip>
</div>
<Tooltip content={tips} key={direction} placement="right" {...props.tooltipProps} showArrow={false}>
{getSortIcon(direction, activeClass)}
</Tooltip>
);
});
return <div className={classNames(classes)}>{sortButton}</div>;
Expand Down
Loading

0 comments on commit 51ca075

Please sign in to comment.