Use ConfirmButton in BodyDelete

pull/10616/head
Alex P 2018-06-15 15:50:10 -07:00
parent 860548bab2
commit 9a0687b43b
1 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import React, {PureComponent} from 'react' import React, {PureComponent} from 'react'
import ConfirmButton from 'src/shared/components/ConfirmButton'
interface Props { interface Props {
bodyID: string bodyID: string
@ -8,9 +9,14 @@ interface Props {
class BodyDelete extends PureComponent<Props> { class BodyDelete extends PureComponent<Props> {
public render() { public render() {
return ( return (
<button className="btn btn-xs btn-danger" onClick={this.handleDelete}> <ConfirmButton
Delete icon="trash"
</button> type="btn-danger"
confirmText="Delete this query"
square={true}
confirmAction={this.handleDelete}
position="right"
/>
) )
} }