This commit is contained in:
Will Hunt
2020-12-14 12:59:59 +00:00
parent 3466813c23
commit c5e578a502
2 changed files with 11 additions and 6 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { func } from 'prop-types';
import * as React from 'react';
import * as sdk from '../index';
@@ -47,4 +46,4 @@ export function replaceableComponent(name: string, origComponent: React.Componen
*/
export function replaceableComponentTs(name: string) {
return (origComponent: typeof React.Component) => sdk.getComponent(name) || origComponent;
}
}