add generic footer to infoDialog
This commit is contained in:
parent
0d8fc87061
commit
9852159e9a
|
@ -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'>
|
||||||
|
|
Loading…
Reference in New Issue