add generic footer to infoDialog

This commit is contained in:
Eduardo Quiros 2022-08-09 00:53:52 -06:00
parent 0d8fc87061
commit 9852159e9a
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,11 @@ class InfoDialog extends React.Component {
super(props) super(props)
this.state = { this.state = {
openInfoDialog: false, openInfoDialog: false,
footer: (
<>
<Button label='Cerrar' icon='pi pi-times' onClick={this.onClose} />
</>
),
} }
} }
render() { render() {
@ -15,7 +20,7 @@ class InfoDialog extends React.Component {
modal modal
className='p-fluid' className='p-fluid'
header={this.props.header} header={this.props.header}
footer={this.props.footer} footer={this.state.footer}
> >
<div className='container text-center'> <div className='container text-center'>
<div className='row my-4'> <div className='row my-4'>