admin: remove commented code
This commit is contained in:
parent
0cc79ad645
commit
c0904d9c00
|
@ -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 });
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue