Skip to content

Commit

Permalink
feat: now when copy it does icon.TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 8, 2020
1 parent 0c51858 commit 4e23f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/IconReference.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const IconReference = ({ type }) => {
className={styles.button}
type="button"
key={type}
onClick={() => copyIcon(type)}
onClick={() => copyIcon(`Icon.TYPE.${type}`)}
>
<Icon className={styles.icon} type={Icon.TYPE[type]} />
<span className={styles.iconName}>{copied ? 'Copied!' : type}</span>
Expand Down

0 comments on commit 4e23f7f

Please sign in to comment.