diff --git a/src/components/IconReference.js b/src/components/IconReference.js index a91bb3696..639485faf 100644 --- a/src/components/IconReference.js +++ b/src/components/IconReference.js @@ -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>