Skip to content

Commit

Permalink
Overview page button status
Browse files Browse the repository at this point in the history
  • Loading branch information
apporc committed Jun 25, 2024
1 parent bf3cf53 commit ba446d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pages/earn/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
/>
{:else if $step === Step.Overview}
<REXOverview
availableTokens={$availableSystemTokens}
maturedBalance={$maturedBalance}
rexBalance={$rexBalance}
toStake={() => switchStep(Step.Stake)}
Expand Down
5 changes: 3 additions & 2 deletions src/pages/earn/step/overview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Button from '~/components/elements/button.svelte'
export let availableTokens: Asset
export let maturedBalance: Asset
export let rexBalance: Asset
export let toStake: () => void
Expand Down Expand Up @@ -105,7 +106,7 @@
fluid
style="primary"
size="regular"
disabled={false}
disabled={availableTokens.value <= 0}
formValidation
on:action={toStake}
>
Expand All @@ -115,7 +116,7 @@
fluid
style="primary"
size="regular"
disabled={false}
disabled={maturedBalance.value <= 0}
formValidation
on:action={toUnstake}
>
Expand Down

0 comments on commit ba446d1

Please sign in to comment.