Skip to content

Commit

Permalink
Update pending staking card
Browse files Browse the repository at this point in the history
  • Loading branch information
Anboias committed Nov 19, 2024
1 parent 8be721c commit d93aa68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
@import '../../../styles/fonts.module.scss';

.pendingUnstakePanel {
padding-top: $space-md;
padding-top: 16px;
border-top: 1px solid $color-dark-blue-10;
box-sizing: border-box;

@media (min-width: $sm) {
padding: $space-lg $space-lg $space-md $space-lg;
@media (min-width: $md) {
padding: 24px 24px 8px 24px;
}
}

Expand All @@ -30,7 +30,7 @@
color: $color-dark-blue-400;
}

@media (min-width: $sm) {
@media (min-width: $md) {
h5 {
@include font-subtitle-3;
}
Expand All @@ -50,25 +50,23 @@
text-align: right;
margin-right: 24px;
width: 40%;

@media (min-width: $sm) and (max-width: $md) {
width: 60px;
}
}

.pendingUnstakeActions {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: $space-md;
margin-top: $space-lg;
white-space: nowrap;

@media (min-width: $sm) and (max-width: $md) {
flex-direction: column-reverse;
* {
width: 100%;
max-width: 240px;

* {
width: 100%;
@media (min-width: $md) {
max-width: 264px;
}
}
}
Expand All @@ -77,7 +75,7 @@
display: flex;
margin-left: 2px;

@media (min-width: $sm) {
@media (min-width: $md) {
margin-left: 4px;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ const PendingUnstakePanel = (props: Props) => {
</div>
</div>
<div className={styles.pendingUnstakeActions}>
<Button size="xs" type="secondary-neutral" onClick={handleUnstake} disabled={!canUnstake}>
Unstake
</Button>
<Button size="xs" type="primary" onClick={handleUnstakeAndWithdraw} disabled={!canUnstakeAndWithdraw}>
Unstake and Withdraw
</Button>
<Button size="xs" type="secondary-neutral" onClick={handleUnstake} disabled={!canUnstake}>
Unstake
</Button>
</div>
</div>
</div>
Expand Down

0 comments on commit d93aa68

Please sign in to comment.