Skip to content

Commit

Permalink
Merge pull request #6844 from thnaylor/fix/6839
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao authored Aug 21, 2023
2 parents ea2facc + 98839dd commit c4baf33
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 3 additions & 5 deletions components/TheFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@
<li
v-for="item in socials"
:key="item.url"
class="footer-container-socials-list-item is-flex is-align-items-center is-justify-content-center mr-2"
@click="goToSocials(item.url)">
class="footer-container-socials-list-item is-flex is-align-items-center is-justify-content-center mr-2">
<a
v-safe-href="item.url"
class="is-flex icon"
rel="nofollow noopener noreferrer"
target="_blank"
role="link"
:aria-label="item.name">
<!-- substack doesnt have a font awesome icon -->
Expand Down Expand Up @@ -274,7 +275,4 @@ const socials = [
icon: 'reddit-alien',
},
]
const goToSocials = (url): void => {
window.open(url, '_blank')
}
</script>
6 changes: 4 additions & 2 deletions components/landing/SearchLanding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
<a
v-for="chain in availableChains"
:key="chain.value"
v-safe-href="`/${chain.value}/explore/collectibles`"
:class="['m-2', 'chain-option active']"
@click="switchChain(chain.value)">
@click.prevent="switchChain(chain.value)">
{{ chainText(chain.text) }}
<sup v-if="chain.text.includes('[Beta]')" class="beta-text is-size-7">
{{ $t('beta') }}</sup
Expand Down Expand Up @@ -74,7 +75,8 @@ const landingImage = computed(() => {
}
})
const switchChain = (value) => {
const switchChain = (value, event) => {
event.preventDefault()
if (value !== urlPrefix.value) {
setUrlPrefix(value)
}
Expand Down
4 changes: 2 additions & 2 deletions components/navbar/ShoppingCartButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<a
<div
class="navbar-item is-flex is-align-items-center"
@click="toggleShoppingCartModal">
<span v-if="props.showLabel">{{ $t('shoppingCart.label') }}</span>
Expand All @@ -14,7 +14,7 @@
rounded
class="count-position is-size-7" />
</div>
</a>
</div>
</template>

<script setup lang="ts">
Expand Down

0 comments on commit c4baf33

Please sign in to comment.