Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #26

Merged
merged 3 commits into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading