|
@@ -3,9 +3,6 @@ import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
|
|
-import { createSubscribedElement } from '../../UnstatedUtils';
|
|
|
|
|
-import AppContainer from '../../../services/AppContainer';
|
|
|
|
|
-
|
|
|
|
|
class RadioButtonForSerchUserOption extends React.Component {
|
|
class RadioButtonForSerchUserOption extends React.Component {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
@@ -31,18 +28,10 @@ class RadioButtonForSerchUserOption extends React.Component {
|
|
|
|
|
|
|
|
RadioButtonForSerchUserOption.propTypes = {
|
|
RadioButtonForSerchUserOption.propTypes = {
|
|
|
t: PropTypes.func.isRequired, // i18next
|
|
t: PropTypes.func.isRequired, // i18next
|
|
|
- appContainer: PropTypes.instanceOf(AppContainer).isRequired,
|
|
|
|
|
|
|
|
|
|
searchType: PropTypes.string.isRequired,
|
|
searchType: PropTypes.string.isRequired,
|
|
|
checked: PropTypes.bool.isRequired,
|
|
checked: PropTypes.bool.isRequired,
|
|
|
onChange: PropTypes.bool.isRequired,
|
|
onChange: PropTypes.bool.isRequired,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * Wrapper component for using unstated
|
|
|
|
|
- */
|
|
|
|
|
-const RadioButtonForSerchUserOptionWrapper = (props) => {
|
|
|
|
|
- return createSubscribedElement(RadioButtonForSerchUserOption, props, [AppContainer]);
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-export default withTranslation()(RadioButtonForSerchUserOptionWrapper);
|
|
|
|
|
|
|
+export default withTranslation()(RadioButtonForSerchUserOption);
|