Skip to content

Commit

Permalink
fix: clicking on item in atomic swap should open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 committed Jan 1, 2025
1 parent 10f023d commit 6d668b4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/items/ItemsGrid/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
? 'minimal'
: 'primary'
"
:link-target="linkTarget"
/>
<ItemsGridImageTokenEntity
v-else
Expand All @@ -51,6 +52,7 @@
:hide-action="hideNFTHoverAction"
:hide-listing="hideListing"
hide-video-controls
:link-target="linkTarget"
:lazy-loading="
shouldLazyLoad({
cols: slotProps.cols,
Expand Down Expand Up @@ -148,6 +150,7 @@ const props = defineProps<{
hideHoverAction?: boolean
collectionPopoverHide?: boolean
hideListing?: boolean
linkTarget?: string
}>()
const emit = defineEmits(['total', 'loading'])
Expand Down
2 changes: 2 additions & 0 deletions components/items/ItemsGrid/ItemsGridImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
bind-key="to"
:media-static-video="hideVideoControls"
media-hover-on-cover-play
:link-target="linkTarget"
>
<template
v-if="!hideAction"
Expand Down Expand Up @@ -106,6 +107,7 @@ const props = defineProps<{
collectionPopoverHide?: boolean
lazyLoading?: boolean
skeletonVariant: string
linkTarget?: string
}>()
const {
Expand Down
2 changes: 2 additions & 0 deletions components/items/ItemsGrid/ItemsGridImageTokenEntity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:media-static-video="hideVideoControls"
:lazy-loading="lazyLoading"
media-hover-on-cover-play
:link-target="linkTarget"
>
<template
v-if="!hideAction"
Expand Down Expand Up @@ -123,6 +124,7 @@ const props = defineProps<{
lazyLoading?: boolean
skeletonVariant: string
hideListing?: boolean
linkTarget?: string
}>()
const {
Expand Down
2 changes: 2 additions & 0 deletions components/shared/nftCard/NftCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<component
:is="link"
v-if="!isLoading && nft"
:target="linkTarget"
:[bindKey]="href"
>
<img
Expand Down Expand Up @@ -142,6 +143,7 @@ const props = withDefaults(
hideMediaInfo?: boolean
linkTo?: string
lazyLoading?: boolean
linkTarget?: string
}>(),
{
collectionPopoverShowDelay: 500,
Expand Down
1 change: 1 addition & 0 deletions components/swap/GridList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:search="query"
grid-size="medium"
:grid-section="gridSection"
link-target="_blank"
:hide-hover-action="!selectable"
>
<template
Expand Down

0 comments on commit 6d668b4

Please sign in to comment.