Skip to content

Commit bfe2877

Browse files
committed
Rename icon, add shrink expand icons to card header.
1 parent 9d50e9a commit bfe2877

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/components/cards/cards.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import Draggable from 'react-draggable';
66

77
import styles from './card.css';
88

9+
import shrinkIcon from './icon--shrink.svg';
10+
import expandIcon from './icon--expand.svg';
11+
912
import rightArrow from './icon--next.svg';
1013
import leftArrow from './icon--prev.svg';
1114

@@ -47,6 +50,10 @@ const CardHeader = ({onCloseCards, onToggleCards, onShowAll, totalSteps, step, t
4750
className={styles.toggleButton}
4851
onClick={onToggleCards}
4952
>
53+
<img
54+
draggable={false}
55+
src={toggle ? shrinkIcon : expandIcon}
56+
/>
5057
{toggle ? 'Shrink' : 'Expand'}
5158
</div>
5259
<div

0 commit comments

Comments
 (0)