Minor UI improvements for deploy modal (#352)

This commit is contained in:
Navaneeth Pk 2021-06-29 00:43:44 +05:30 committed by GitHub
parent 3980448fb2
commit 73c36efa57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,13 +78,20 @@ class SaveAndPreview extends React.Component {
return (
<div>
{!showModal && (
<button className="btn btn-primary btn-sm" onClick={() => this.setState({ showModal: true })}>
Deploy
</button>
)}
<button className="btn btn-primary btn-sm" onClick={() => this.setState({ showModal: true })}>
Deploy
</button>
<Modal show={this.state.showModal} size="md" backdrop="static" centered={true} keyboard={true}>
<Modal
show={this.state.showModal}
size="md"
backdrop="static"
centered={true}
keyboard={true}
enforceFocus={false}
animation={false}
onEscapeKeyDown={() => this.hideModal()}
>
<Modal.Header>
<Modal.Title>Versions and deployments</Modal.Title>
<div>