Created
October 22, 2018 22:01
-
-
Save Faliszek/844ba4c8295619bac0cc4aac36f91f27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gdzies w komopnencie | |
<Icon iconType="brand" name="spotify" /> | |
Icon component: | |
function mappedTyped(i) { | |
return { | |
"brand": "fab" | |
}[i] | |
} | |
type Props = { | |
name: 'spotify' | 'inna ikona' | |
} | |
<i className={`${mappedType(props.iconType) fa-${props.name}`} |
baransu
commented
Oct 22, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment