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

Port fields / features from Stick #284

Open
vikiival opened this issue Apr 3, 2024 · 0 comments
Open

Port fields / features from Stick #284

vikiival opened this issue Apr 3, 2024 · 0 comments
Labels
$ ~<50usd p3

Comments

@vikiival
Copy link
Member

vikiival commented Apr 3, 2024

Context

As I have seen this in kodadot/nft-gallery#9959
It is not ok, as it adds complexity to the app :)

export default () => {
   const { urlPrefix } = usePrefix()
   const { isRemark, isAssetHub } = useIsChain(urlPrefix)

   const { hasItems } = useHasRoute()

   const options = computed(() => {
     if (hasItems.value) {
       return isRemark.value
         ? [...NFT_SQUID_SORT_CONDITION_LIST, 'instance_ASC']
         : NFT_SQUID_SORT_CONDITION_LIST
     }

     return isAssetHub.value
       ? [...NFT_SQUID_SORT_COLLECTIONS, 'volume_DESC', 'highestSale_DESC']
       : NFT_SQUID_SORT_COLLECTIONS
   })

   return { options }
 }

Task

Port fields on NFT/Collection from kodadot/stick to here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$ ~<50usd p3
Projects
None yet
Development

No branches or pull requests

1 participant