Renamed onModalDismissed to onHide to keep it consistent with React-Bootstrap

Этот коммит содержится в:
hmhealey
2015-11-10 11:54:43 -05:00
родитель 9cdf820f7b
Коммит 590e7f903f
3 изменённых файлов: 19 добавлений и 18 удалений

Просмотреть файл

@@ -14,6 +14,7 @@ export default class AccessHistoryModal extends React.Component {
this.onAuditChange = this.onAuditChange.bind(this);
this.handleMoreInfo = this.handleMoreInfo.bind(this);
this.onShow = this.onShow.bind(this);
this.onHide = this.onHide.bind(this);
this.formatAuditInfo = this.formatAuditInfo.bind(this);
this.handleRevokedSession = this.handleRevokedSession.bind(this);
@@ -38,7 +39,7 @@ export default class AccessHistoryModal extends React.Component {
}
onHide() {
this.setState({moreInfo: []});
this.props.onModalDismissed();
this.props.onHide();
}
componentDidMount() {
UserStore.addAuditsChangeListener(this.onAuditChange);
@@ -401,5 +402,5 @@ export default class AccessHistoryModal extends React.Component {
AccessHistoryModal.propTypes = {
show: React.PropTypes.bool.isRequired,
onModalDismissed: React.PropTypes.func.isRequired
onHide: React.PropTypes.func.isRequired
};