-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ryanwolhuter <[email protected]>
- Loading branch information
1 parent
c33870f
commit 9794df5
Showing
6 changed files
with
1,154 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script setup lang="ts"> | ||
import { getIpfsUrl, shorten } from '@/helpers/utils'; | ||
import networks from '@snapshot-labs/snapshot.js/src/networks.json'; | ||
import { GnosisSafe } from '../types'; | ||
import { getSafeAppLink } from '../utils'; | ||
const props = defineProps<{ | ||
safe: GnosisSafe; | ||
}>(); | ||
const safeLink = computed(() => | ||
getSafeAppLink(props.safe.network, props.safe.safeAddress) | ||
); | ||
const networkLogo = networks[props.safe.network].logo; | ||
const networkLogoUrl = getIpfsUrl(networkLogo) as string; | ||
</script> | ||
|
||
<template> | ||
<span class="inline-flex items-center"> | ||
<BaseAvatar class="" :src="networkLogoUrl" size="24" /> | ||
{{ safe.safeName }} | ||
<a | ||
v-if="safe.safeAddress" | ||
:href="safeLink" | ||
class="ml-2 flex font-normal text-skin-text" | ||
target="_blank" | ||
> | ||
{{ shorten(safe.safeAddress) }} | ||
<i-ho-external-link class="ml-1" /> | ||
</a> | ||
</span> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.