Skip to content

Commit

Permalink
Make proposal in archived pool cancellable
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Dec 18, 2024
1 parent 7f00d77 commit 4867fcc
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,23 +328,23 @@ export default function Page({
</Statistic>
</div>
<div className="flex items-end">
{proposalData.strategy.isEnabled &&
(isProposerConnected && proposalStatus === "active" ?
<CancelButton
proposalData={{ ...proposalData, ...metadata }}
/>
: <DisputeButton
{isProposerConnected && proposalStatus === "active" ?
<CancelButton
proposalData={{ ...proposalData, ...metadata }}
/>
: proposalData.strategy.isEnabled && (
<DisputeButton
isMemberCommunity={isMemberCommunity}
proposalData={{ ...proposalData, ...metadata }}
/>)}
/>
)
}
</div>
</div>
</div>
</div>
{!proposalData.strategy.isEnabled && (
<InfoBox infoBoxType="warning">
The pool is not enabled.
</InfoBox>
<InfoBox infoBoxType="warning">The pool is not enabled.</InfoBox>
)}
</header>
{proposalData.strategy.isEnabled && (
Expand Down

0 comments on commit 4867fcc

Please sign in to comment.