From 428761b95deaed7ded930f0b3a3fbaec03363540 Mon Sep 17 00:00:00 2001 From: Kyle Alwyn Date: Mon, 17 Sep 2018 17:21:58 -0700 Subject: [PATCH] fix(Icon): Dont call super in componentDidMount --- src/Icon/Icon.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Icon/Icon.js b/src/Icon/Icon.js index 5f190ee..6762015 100644 --- a/src/Icon/Icon.js +++ b/src/Icon/Icon.js @@ -27,9 +27,7 @@ class Icon extends React.Component { static iconUrl = 'https://cdn.heydoctor.co/assets/css/material-design-icons.css'; static iconPrefix = 'mdi'; - componentDidMount(props) { - super(props); - + componentDidMount() { if (!this.constructor.injected) { this.constructor.injected = true; const link = document.createElement('link');