Skip to content

Commit

Permalink
fix: cosmetic issues (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 authored Nov 23, 2023
1 parent 8cbb6e2 commit b9253fa
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/ModalOsnap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const href = computed(() =>
{{ isOsnapEnabled ? 'Deactivate' : 'Activate' }} oSnap
<i-ho-external-link class="mb-[2px] ml-1 inline-block text-xs" />
</a>
<p class="mt-2 text-xs text-black/50">
<p class="mt-2 text-xs text-skin-text">
Note that the deactivation process takes place in the Safe app
</p>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/oSnap/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function fetchCollectibles(network: Network, gnosisSafeAddress: string) {
console.log({ response });
return response.results;
} catch (error) {
console.warn('Error fetching collectables');
console.warn('Error fetching collectibles');
}
return [];
}
Expand Down
9 changes: 5 additions & 4 deletions src/plugins/oSnap/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function enrichTransactionForDisplay(transaction: Transaction) {
type: 'Transfer NFT',
recipient,
collectable: `${collectable?.tokenName} #${collectable?.id}`,
'collectable address': collectable?.address
'collectible address': collectable?.address
};
}
return { ...commonProperties, type: 'Raw' };
Expand All @@ -87,9 +87,10 @@ function enrichTransactionForDisplay(transaction: Transaction) {
<h4 class="mb-2">Transaction #{{ index + 1 }} — {{ type }}</h4>

<ReadOnly v-for="[key, value] in Object.entries(details)">
<strong class="mr-2 inline-block whitespace-nowrap capitalize">{{
key
}}</strong>
<strong
class="mr-2 inline-block whitespace-nowrap first-letter:capitalize"
>{{ key }}</strong
>
<span class="break-all">{{ value }}</span>
</ReadOnly>
</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 capitalize leading-[42px] hover:border-skin-text',
'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',
{ 'pointer-events-none': disabled }
]"
rel="noopener noreferrer"
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/oSnap/components/Input/TransactionType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ const transactionTypesWithDetails: {
}[] = [
{
type: 'transferFunds',
title: 'Transfer funds',
title: 'Send tokens',
description: 'Transfer funds to another address'
},
{
type: 'transferNFT',
title: 'Transfer collectable',
description: 'Transfer a collectable to another address'
title: 'Send NFT',
description: 'Transfer a collectible to another address'
},
{
type: 'contractInteraction',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ const safeLink = computed(() =>
})
"
>
Add Transaction +
Add transaction +
</BaseButton>
</template>

0 comments on commit b9253fa

Please sign in to comment.