admin: comment ProposalDetail delete fns to apease tsc

This commit is contained in:
Aaron 2019-05-27 15:19:08 -05:00
parent 0c94c11bd5
commit 0cc79ad645
No known key found for this signature in database
GPG Key ID: 3B5B7597106F0A0E
1 changed files with 16 additions and 16 deletions

View File

@ -64,18 +64,18 @@ class ProposalDetailNaked extends React.Component<Props, State> {
return m.datePaid ? prev - parseFloat(m.payoutPercent) : prev;
}, 100);
const renderDeleteControl = () => (
<Popconfirm
onConfirm={this.handleDelete}
title="Delete proposal?"
okText="delete"
cancelText="cancel"
>
<Button icon="delete" className="ProposalDetail-controls-control" block>
Delete
</Button>
</Popconfirm>
);
// const renderDeleteControl = () => (
// <Popconfirm
// onConfirm={this.handleDelete}
// title="Delete proposal?"
// okText="delete"
// cancelText="cancel"
// >
// <Button icon="delete" className="ProposalDetail-controls-control" block>
// Delete
// </Button>
// </Popconfirm>
// );
const renderCancelControl = () => {
const disabled = this.getCancelAndRefundDisabled();
@ -507,10 +507,10 @@ class ProposalDetailNaked extends React.Component<Props, State> {
store.fetchProposalDetail(this.getIdFromQuery());
};
private handleDelete = () => {
if (!store.proposalDetail) return;
store.deleteProposal(store.proposalDetail.proposalId);
};
// private handleDelete = () => {
// if (!store.proposalDetail) return;
// store.deleteProposal(store.proposalDetail.proposalId);
// };
private handleCancelCancel = () => {
this.setState({ showCancelAndRefundPopover: false });