fix icon default size

Summary:
Logs plugin expected the default icons size to be 16 and therefor didn't set it explicitly. However, with the TS migration we lost the default size.
This adds back the default size for icons.

Reviewed By: jknoxville

Differential Revision: D17156747

fbshipit-source-id: a37f3a2bd189a56019aee1939618caf21122a397
This commit is contained in:
Daniel Büchele
2019-09-02 10:01:41 -07:00
committed by Facebook Github Bot
parent 9a9eda3da5
commit b924b14225

View File

@@ -87,7 +87,7 @@ export default class Glyph extends React.Component<{
color?: string; color?: string;
}> { }> {
render() { render() {
const {name, size, variant, color, className} = this.props; const {name, size = 16, variant, color, className} = this.props;
return ( return (
<ColoredIcon <ColoredIcon