Skip to content

Commit

Permalink
fix: show the modal when clicking the button and restyle it to make i…
Browse files Browse the repository at this point in the history
…t more obvious
  • Loading branch information
nicolasbrugneaux committed Sep 14, 2023
1 parent e76eca1 commit 39021f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Detail = ({
</i>
{unlockable?.gt(0) && (
<Button onClick={unlock} classes="h-[24px]">
<Pill classes={inModal ? 'bg-primary' : 'bg-secondary'}>Unlock</Pill>
<Pill classes={'bg-action-primary-regular text-white'}>Unlock</Pill>
</Button>
)}
</div>
Expand Down Expand Up @@ -81,6 +81,7 @@ const CurrentVotingBalanceDetails = ({
const bothZero = lockedVoteBalance?.eq(0) && lockedStCeloInVoting?.eq(0);

const unlock = useCallback(() => {
setIsCalloutModalOpened(true);
void unlockVoteBalance?.({
onSent: () => {
setIsCalloutModalOpened(false);
Expand Down

0 comments on commit 39021f6

Please sign in to comment.