Skip to content

Commit

Permalink
Merge pull request #25 from Apillon/dev
Browse files Browse the repository at this point in the history
MetaMask install link
  • Loading branch information
MoMannn authored Feb 20, 2024
2 parents 8700240 + cef624b commit f1251d2
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions frontend/components/parts/form/Wallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,38 @@ const { connect, connectors, pendingConnector } = useConnect();
<div class="my-8 text-center">
<h3 class="mb-6">Choose a wallet</h3>
<p>
To proceed to claiming your MENT token, choose your preferred wallet and connect it by clicking below.
To proceed to claiming your MENT token, choose your preferred wallet and connect it by
clicking below.
</p>
</div>

<n-space size="large" vertical>
<Btn
v-for="(connector, key) in connectors"
:key="key"
type="secondary"
size="large"
:loading="connector.id === pendingConnector?.id"
:disabled="!connector.ready"
@click="connect({ connector })"
>
<span class="inline-flex gap-2 items-center">
<NuxtIcon :name="connector.id" class="text-xl" filled />
<span class="text-black">{{ connector.name }}</span>
</span>
</Btn>
<template v-for="connector in connectors">
<Btn
v-if="!connector.ready && connector.id === 'metaMask'"
type="secondary"
size="large"
href="https://metamask.app.link/dapp/nft.ment.si"
>
<span class="inline-flex gap-2 items-center">
<NuxtIcon :name="connector.id" class="text-xl" filled />
<span class="text-black">{{ connector.name }}</span>
</span>
</Btn>
<Btn
v-else
type="secondary"
size="large"
:loading="connector.id === pendingConnector?.id"
:disabled="!connector.ready"
@click="connect({ connector })"
>
<span class="inline-flex gap-2 items-center">
<NuxtIcon :name="connector.id" class="text-xl" filled />
<span class="text-black">{{ connector.name }}</span>
</span>
</Btn>
</template>
</n-space>
</div>
</template>

0 comments on commit f1251d2

Please sign in to comment.