Skip to content

Commit

Permalink
feat: add snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX authored and fabianschu committed Apr 21, 2024
1 parent 1301eea commit e5b1d95
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 21 deletions.
Binary file added src/assets/images/services/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 52 additions & 21 deletions src/components/contextual/pages/dashboard/Cards/RefiProfileCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { NFTData as TNFTData } from '@/services/campaigns/campaigns.service';
import IsMintingNFTModal from '../Modals/IsMintingNFTModal.vue';
import IsUpgradingNFTModal from '../Modals/IsUpgradingNFTModal.vue';
import { ref, computed, watch } from 'vue';
import Snapshot from '@/assets/images/services/snapshot.png';
import RFP from '@/assets/images/icons/coins/RFP.svg';
const { startConnectWithInjectedProvider } = useWeb3();
Expand Down Expand Up @@ -95,13 +96,23 @@ function handleMintNFTClose() {
</h3>
<div class="flex justify-between items-center text-base">
<p>Voting Power</p>
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1 ? 'vote' : 'votes'
}}
</p>
<p v-else>- Votes</p>
<div class="flex flex-row gap-2 items-center">
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1
? 'vote'
: 'votes'
}}
</p>
<p v-else>- Votes</p>
<a
target="_blank"
href="https://snapshot.org/#/regenerativefi.eth"
>
<img :src="Snapshot" class="w-4 h-4" />
</a>
</div>
</div>
</div>
<div class="w-full border-t-2" />
Expand Down Expand Up @@ -178,13 +189,23 @@ function handleMintNFTClose() {
</h3>
<div class="flex justify-between items-center text-base">
<p>Voting Power</p>
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1 ? 'vote' : 'votes'
}}
</p>
<p v-else>- Votes</p>
<div class="flex flex-row gap-2 items-center">
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1
? 'vote'
: 'votes'
}}
</p>
<p v-else>- Votes</p>
<a
target="_blank"
href="https://snapshot.org/#/regenerativefi.eth"
>
<img :src="Snapshot" class="w-4 h-4" />
</a>
</div>
</div>
</div>
<div class="w-full border-t-2" />
Expand Down Expand Up @@ -264,13 +285,23 @@ function handleMintNFTClose() {
<h3 v-else class="self-start text-lg">Mint NFT</h3>
<div class="flex justify-between items-center text-base">
<p>Voting Power</p>
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1 ? 'vote' : 'votes'
}}
</p>
<p v-else>- Votes</p>
<div class="flex flex-row gap-2 items-center">
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1
? 'vote'
: 'votes'
}}
</p>
<p v-else>- Votes</p>
<a
target="_blank"
href="https://snapshot.org/#/regenerativefi.eth"
>
<img :src="Snapshot" class="w-4 h-4" />
</a>
</div>
</div>
</div>
<div class="w-full border-t-2" />
Expand Down

0 comments on commit e5b1d95

Please sign in to comment.