Skip to content

Commit

Permalink
fix: remove View on IPFS link (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 authored Nov 28, 2023
1 parent c0c426c commit 858f2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/plugins/oSnap/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import HandleOutcome from './components/HandleOutcome/HandleOutcome.vue';
import ReadOnly from './components/Input/ReadOnly.vue';
import SafeLinkWithAvatar from './components/SafeLinkWithAvatar.vue';
import { GnosisSafe, Transaction } from './types';
import ExternalLink from './components/ExternalLink.vue';
const keyOrder = [
'to',
Expand Down Expand Up @@ -99,10 +98,7 @@ function enrichTransactionForDisplay(transaction: Transaction) {
>
<h2 class="text-lg">oSnap Transactions</h2>
<div class="flex flex-col items-center gap-3 md:flex-row">
<SafeLinkWithAvatar class="flex-2" :safe="safe" />
<ExternalLink class="flex-1" v-if="ipfs" :link="ipfs">
View on IPFS
</ExternalLink>
<SafeLinkWithAvatar :safe="safe" />
</div>
<div class="divider mx-auto h-[1px] w-full bg-skin-border" />
<div
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/oSnap/components/ExternalLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defineProps<{
:href="sanitizeUrl(link)"
target="_blank"
:class="[
'inline-flex w-full items-center gap-2 whitespace-nowrap rounded-3xl border border-skin-border bg-skin-bg px-4 font-semibold first-letter:capitalize leading-[42px] hover:border-skin-text',
'inline-flex items-center gap-2 whitespace-nowrap rounded-3xl border border-skin-border bg-skin-bg px-4 font-semibold first-letter:capitalize leading-[42px] hover:border-skin-text',
{ 'pointer-events-none': disabled }
]"
rel="noopener noreferrer"
Expand Down

0 comments on commit 858f2a7

Please sign in to comment.