fix(icons): scope white svgs to Icon components

This commit is contained in:
Leonard Kim
2019-09-20 07:50:41 -07:00
committed by virtuacoplenny
parent f5dba929a5
commit 92e7be34e3
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -11,7 +11,7 @@ type Props = {
/**
* Class name for the web platform, if any.
*/
className?: string,
className: string,
/**
* Color of the icon (if not provided by the style object).
@@ -68,7 +68,7 @@ export default function Icon(props: Props) {
return (
<Container
className = { className }
className = { `jitsi-icon ${className}` }
style = { restStyle }>
<IconComponent
fill = { calculatedColor }
@@ -79,3 +79,6 @@ export default function Icon(props: Props) {
);
}
Icon.defaultProps = {
className: ''
};