diff --git a/package.json b/package.json index 1aade9cb28..2bf0b0ef7d 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "redux-thunk": "^2.1.0", "ringcentral": "^3.1.2", "ringcentral-client": "^1.0.0-rc1", - "ringcentral-integration": "^0.7.4", + "ringcentral-integration": "^0.7.5", "sass-loader": "^6.0.5", "source-map-loader": "^0.2.1", "style-loader": "^0.18.2", diff --git a/src/components/FlipPanel/index.js b/src/components/FlipPanel/index.js index fcfdcb35bb..974893eb53 100644 --- a/src/components/FlipPanel/index.js +++ b/src/components/FlipPanel/index.js @@ -15,6 +15,7 @@ export default class FlipPanel extends Component { super(props); this.state = { flipValue: '', + flipEnabled: true, }; this.onRadioSelect = (value) => { this.setState({ @@ -23,6 +24,9 @@ export default class FlipPanel extends Component { }; this.flip = () => { this.props.flip(this.state.flipValue); + this.setState({ + flipEnabled: false + }); }; } render() { @@ -46,16 +50,16 @@ export default class FlipPanel extends Component {
{} : this.flip} + onClick={this.state.flipEnabled ? this.flip : () => {}} icon={FlipIcon} showBorder /> diff --git a/src/components/RadioBtnGroup/index.js b/src/components/RadioBtnGroup/index.js index c0e00fe625..543cb5debd 100644 --- a/src/components/RadioBtnGroup/index.js +++ b/src/components/RadioBtnGroup/index.js @@ -12,7 +12,7 @@ function RadioOption(props) { btnClassName = styles.radioBtn; } return ( -
{ props.onSelect(props.currentIndex); }}> +
{ props.onSelect(props.currentIndex); }}> {props.phoneNumber} @@ -24,7 +24,6 @@ function RadioOption(props) { ); } RadioOption.propTypes = { - id: PropTypes.string.isRequired, currentIndex: PropTypes.number.isRequired, phoneNumber: PropTypes.string.isRequired, label: PropTypes.string, @@ -58,7 +57,7 @@ export default class RadioButtonGroup extends Component {