Skip to content

Commit

Permalink
Update modal buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnaukal committed May 14, 2024
1 parent c1789bd commit 8474aaa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/lib/bootstrap-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class ModalDialog extends Component {
return (
<button
key={idx}
className={buttonSpec.className}
className={'btn ' + buttonSpec.className}
onClick={() => this.onButtonClick(idx)}
>
{buttonSpec.label}
Expand All @@ -378,7 +378,7 @@ export class ModalDialog extends Component {
}

render() {
const { className, title, children } = this.props;
const { className, title, children, t } = this.props;

let modalClassName = `modal fade ${className || ''}`;
if (this.state.isShown) {
Expand All @@ -399,9 +399,7 @@ export class ModalDialog extends Component {
<div className="modal-content">
<div className="modal-header">
<h4 className="modal-title">{title}</h4>
<button type="button" className="close" aria-label="Close" onClick={this.onClose}>
<span aria-hidden="true">&times;</span>
</button>
<button type="button" className="btn-close" aria-label={t('close')} onClick={this.onClose} />
</div>
<div className="modal-body">{children}</div>
{this.props.buttons && (
Expand Down

0 comments on commit 8474aaa

Please sign in to comment.