Skip to content

Commit

Permalink
feat: hide USD value input if price is 0 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet authored Mar 4, 2024
1 parent 7703dde commit 3ca35d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/ui/src/components/Modal/SendToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ watchEffect(async () => {
</div>
</button>
</div>
<div class="grid grid-cols-2 gap-2.5">
<div class="relative">
<div class="flex gap-2.5">
<div class="relative w-full">
<UiInputNumber
:model-value="form.amount"
:definition="{
Expand All @@ -277,6 +277,8 @@ watchEffect(async () => {
<a class="absolute right-[16px] top-[4px]" @click="handleMaxClick" v-text="'max'" />
</div>
<UiInputNumber
v-if="currentToken.price !== 0"
class="w-full"
:model-value="form.value"
:definition="{ type: 'number', title: 'USD', examples: ['0'] }"
@update:model-value="handleValueUpdate"
Expand Down

0 comments on commit 3ca35d3

Please sign in to comment.