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

remove View on IPFS link #114

Merged
Merged
Show file tree
Hide file tree
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
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