Skip to content

Commit

Permalink
fix: updates from lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tinuola committed Oct 31, 2023
1 parent cb436ab commit a746cb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/lib-components/NavPrimary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ function clearActive() {
</div>

<ul class="menu">
<NavMenuItem v-for="(item, index) in parsedItems" :key="`NavMenuItem-${item.name}`" :item="item"
<NavMenuItem
v-for="(item, index) in parsedItems" :key="`NavMenuItem-${item.name}`" :item="item"
:is-active="item.isActive" :is-opened="isOpened" @click="toggleMenu" @mouseover="setActive(index)"
@mouseleave="clearActive" />
@mouseleave="clearActive"
/>
<li v-for="item in noChildren" :key="`nav-primary-${item.name}`" class="nochildren-links">
<SmartLink class="nochildren-link underline-hover" :to="item.to" :link-target="item.target">
{{ item.name }}
Expand Down
6 changes: 4 additions & 2 deletions src/lib-components/NavSecondary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ const accountLink = computed(() => {
</li>
</ul>

<ButtonLink v-if="!isMicrosite" :label="accountLink.name" class="account-button" :link-target="accountLink.target"
:to="accountLink.to" :is-secondary="true" />
<ButtonLink
v-if="!isMicrosite" :label="accountLink.name" class="account-button" :link-target="accountLink.target"
:to="accountLink.to" :is-secondary="true"
/>

<ul v-if="isMicrosite" class="link-list">
<li v-for="item in parsedLinks" :key="`nav-secondary-${item.name}`" :class="item.classes">
Expand Down
2 changes: 0 additions & 2 deletions src/lib-components/SearchResult.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<script setup>
// components
import { computed } from 'vue'
import SmartLink from '@/lib-components/SmartLink.vue'
// vue
import removeHtmlTruncate from '@/utils/removeHtmlTruncate'
const { to, category, title, summary } = defineProps({
Expand Down

0 comments on commit a746cb1

Please sign in to comment.