From 509e84663194d5d5e8ff5e590c51eb019ca59e23 Mon Sep 17 00:00:00 2001 From: Oleg Stepura Date: Wed, 29 Mar 2017 00:13:52 +0200 Subject: [PATCH] Fix #1368 (#1369) --- components/radio/RadioGroup.js | 2 +- components/utils/react.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 components/utils/react.js diff --git a/components/radio/RadioGroup.js b/components/radio/RadioGroup.js index beeaa0b5..a0488894 100644 --- a/components/radio/RadioGroup.js +++ b/components/radio/RadioGroup.js @@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react'; import { themr } from 'react-css-themr'; import { RADIO } from '../identifiers'; import InjectRadioButton from './RadioButton'; -import { isComponentOfType } from '../utils/react'; +import isComponentOfType from '../utils/is-component-of-type'; const factory = (RadioButton) => { class RadioGroup extends Component { diff --git a/components/utils/react.js b/components/utils/react.js deleted file mode 100644 index 1b3f7897..00000000 --- a/components/utils/react.js +++ /dev/null @@ -1,3 +0,0 @@ -export function isComponentOfType(classType, reactElement) { - return reactElement && reactElement.type === classType; -}