Skip to content

Commit

Permalink
Merge pull request #136 from okTurtles/sebin/task/#120-nav-bar-spacin…
Browse files Browse the repository at this point in the history
…g-issue

#120 - Fix inconsistent nav-bar
  • Loading branch information
taoeffect authored Aug 1, 2024
2 parents 5a0e8e0 + 2542b93 commit d38dcc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ import { useStore } from '@nanostores/vue';
import { resolvePath } from '@/utils/helpers.js'
const $isNavigationOpen = useStore(isNavigationOpen);
const isCurrentPathEqualTo = val => resolvePath(val) === window.location.pathname
let menuList = ref([])
onMounted(() => {
menuList.value = [
!isCurrentPathEqualTo('/') && { name: 'Home', id: 'homeLink', path: '/' },
{ name: 'Home', id: 'homeLink', path: '/' },
{ name: 'About us', id: 'aboutUsLink', path: '/about-us' },
{ name: 'Blog', id: 'blogLink', path: '/blog' },
{ name: 'FAQS', id: 'blogLink', path: '/faq' },
Expand Down

0 comments on commit d38dcc6

Please sign in to comment.