mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
Update SwapCard.vue
This commit is contained in:
parent
00bec1a41f
commit
9c9797ba8e
|
@ -6,10 +6,11 @@
|
||||||
class="shadow-sm relative border border-grey-dark/[0.15] rounded-lg p-4 mb-2"
|
class="shadow-sm relative border border-grey-dark/[0.15] rounded-lg p-4 mb-2"
|
||||||
>
|
>
|
||||||
<div class="flex justify-between items-center mb-3">
|
<div class="flex justify-between items-center mb-3">
|
||||||
<div>
|
<div class="flex-1" @click="() => token0Input.focus()">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
v-model.trim="token0.amount"
|
v-model.trim="token0.amount"
|
||||||
|
ref="token0Input"
|
||||||
inputmode="decimal"
|
inputmode="decimal"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
autocorrect="off"
|
autocorrect="off"
|
||||||
|
@ -341,6 +342,8 @@ export default defineComponent({
|
||||||
const { activeNetworkId } = useNetwork()
|
const { activeNetworkId } = useNetwork()
|
||||||
const allTokens = computed(() => tokens[activeNetworkId.value].allTokens)
|
const allTokens = computed(() => tokens[activeNetworkId.value].allTokens)
|
||||||
|
|
||||||
|
const token0Input = ref()
|
||||||
|
|
||||||
const token0 = reactive({
|
const token0 = reactive({
|
||||||
address: '',
|
address: '',
|
||||||
symbol: 'ETH',
|
symbol: 'ETH',
|
||||||
|
@ -383,6 +386,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
token0Input,
|
||||||
customSlippage,
|
customSlippage,
|
||||||
token0,
|
token0,
|
||||||
selectToken0,
|
selectToken0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user