Skip to content

Commit

Permalink
Merge pull request #11352 from hassnian/issue-11351
Browse files Browse the repository at this point in the history
feat: Simplify Item Swaps to One-for-One Swaps
  • Loading branch information
vikiival authored Jan 14, 2025
2 parents 7135d49 + 750268e commit 4942569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/swap/GridList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
grid-size="medium"
:grid-section="gridSection"
link-target="_blank"
:hide-hover-action="!selectable"
:hide-hover-action="!selectable || stepItems.length === MAX_AMOUNT_OF_SWAP_ITEMS"
>
<template
v-if="surcharge"
Expand All @@ -31,6 +31,8 @@ import { type SwapSurcharge } from '@/composables/transaction/types'
const gridSection = GridSection.PROFILE_GALLERY
const MAX_AMOUNT_OF_SWAP_ITEMS = 1
const props = defineProps<{
query: Record<string, any>
selectable?: boolean
Expand All @@ -40,6 +42,7 @@ const props = defineProps<{
const route = useRoute()
const { replaceUrl } = useReplaceUrl()
const { stepItems } = storeToRefs(useAtomicSwapStore())
const collections = ref(route.query.collections?.toString().split(',').filter(Boolean) || [])
Expand Down

0 comments on commit 4942569

Please sign in to comment.