37 lines
943 B
JavaScript
Executable file
37 lines
943 B
JavaScript
Executable file
import React from 'react';
|
|
import i18n from '../../i18n';
|
|
import AudioActionCreators from '../../actions/AudioActionCreators';
|
|
import ModalActionCreators from '../../actions/ModalActionCreators';
|
|
import Alert from '../Alert';
|
|
|
|
const DisableSilence = React.createClass({
|
|
dontShowAgain() {
|
|
AudioActionCreators.setSilenceWarning(false);
|
|
this.okay();
|
|
},
|
|
|
|
okay() {
|
|
ModalActionCreators.pop();
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<Alert
|
|
title={i18n.Messages.CONFIRM_DISABLE_SILENCE_TITLE}
|
|
body={i18n.Messages.CONFIRM_DISABLE_SILENCE_BODY}
|
|
minorText={i18n.Messages.CONFIRM_DISABLE_SILENCE_DONT_SHOW}
|
|
onConfirmSecondary={this.dontShowAgain}
|
|
onConfirm={this.okay}
|
|
confirmText={i18n.Messages.OKAY}
|
|
iconUrl={require('../../images/no-mic.svg')}
|
|
/>
|
|
);
|
|
},
|
|
});
|
|
|
|
export default DisableSilence;
|
|
|
|
|
|
|
|
// WEBPACK FOOTER //
|
|
// ./discord_app/components/warnings/DisableSilence.js
|