admin: remove commented code

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

View File

@ -64,19 +64,6 @@ 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 renderCancelControl = () => {
const disabled = this.getCancelAndRefundDisabled();
@ -411,7 +398,6 @@ class ProposalDetailNaked extends React.Component<Props, State> {
<Col span={6}>
{/* ACTIONS */}
<Card size="small" className="ProposalDetail-controls">
{/* {renderDeleteControl()} */}
{renderCancelControl()}
{renderArbiterControl()}
{renderBountyControl()}
@ -507,11 +493,6 @@ class ProposalDetailNaked extends React.Component<Props, State> {
store.fetchProposalDetail(this.getIdFromQuery());
};
// private handleDelete = () => {
// if (!store.proposalDetail) return;
// store.deleteProposal(store.proposalDetail.proposalId);
// };
private handleCancelCancel = () => {
this.setState({ showCancelAndRefundPopover: false });
};