Skip to content

Commit

Permalink
Allow rejection of extension without waiting for AH votes (#1152)
Browse files Browse the repository at this point in the history
Co-authored-by: Brijesh <[email protected]>
  • Loading branch information
brijesh-amin and Brijesh committed Jul 31, 2024
1 parent 18c62a8 commit df0902f
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions src/components/selectRangeUsePlanPage/ExtensionColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,21 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
case PLAN_EXTENSION_STATUS.AWAITING_VOTES:
return (
<div>
{agreement.plan?.extensionReceivedVotes}/
{agreement.plan?.extensionRequiredVotes}
<div style={{ textAlign: 'center' }}>
{agreement.plan?.extensionReceivedVotes}/
{agreement.plan?.extensionRequiredVotes}
</div>
<div>
<Button
style={{ margin: '4px' }}
loading={loading}
onClick={() => {
handleReject(agreement.plan.id);
}}
>
Reject Extension
</Button>
</div>
</div>
);
case PLAN_EXTENSION_STATUS.AGREEMENT_HOLDER_REJECTED:
Expand Down Expand Up @@ -239,8 +252,21 @@ export default function ExtensionColumn({ user, currentPage, agreement }) {
}
return (
<div>
{agreement.plan?.extensionReceivedVotes}/
{agreement.plan?.extensionRequiredVotes}
<div style={{ textAlign: 'center' }}>
{agreement.plan?.extensionReceivedVotes}/
{agreement.plan?.extensionRequiredVotes}
</div>
<div>
<Button
style={{ margin: '4px' }}
loading={loading}
onClick={() => {
handleReject(agreement.plan.id);
}}
>
Reject Extension
</Button>
</div>
</div>
);
case PLAN_EXTENSION_STATUS.AGREEMENT_HOLDER_REJECTED:
Expand Down

0 comments on commit df0902f

Please sign in to comment.