diff --git a/src/components/modal/mute/modal.jsx b/src/components/modal/mute/modal.jsx index 2a4f34397..00a25ee74 100644 --- a/src/components/modal/mute/modal.jsx +++ b/src/components/modal/mute/modal.jsx @@ -20,6 +20,10 @@ class MuteModal extends React.Component { 'handleNext', 'handlePrevious' ]); + this.numSteps = 2; + if (this.props.showWarning) { + this.numSteps++; + } this.state = { step: 0 }; @@ -82,6 +86,23 @@ class MuteModal extends React.Component { />

+ {this.props.showWarning ? ( + +

+ + + + )}} + /> +

+
) : null} @@ -97,7 +118,7 @@ class MuteModal extends React.Component { ) : null } - {this.state.step >= 1 ? ( + {this.state.step >= this.numSteps - 1 ? (