This file contains hidden or 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
import React from 'react'; | |
import SVGIcon from 'components/utils/SVGIcon'; | |
import myIcon from 'assets/icons/myicon.svg'; | |
class MyComponent extends React.Component { | |
render() { | |
return ( | |
<div> | |
<SVGIcon svg={myIcon} width={18} height={18} fill="#444"/> | |
</div> |
This file contains hidden or 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
window.dammitIE = do -> | |
is_internet_explorer = -> | |
window.navigator.appName is "Microsoft Internet Explorer" | |
get_internet_explorer_version = -> | |
matches = new RegExp(" MSIE ([0-9].[0-9]);").exec(window.navigator.userAgent) | |
return parseInt(matches[1].replace(".0", "")) if matches? and matches.length > 1 | |
true |