Skip to content

Commit

Permalink
apply LocaleSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuujin committed May 24, 2024
1 parent 9dbd3bf commit 4123511
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/web/app/components/GlobalHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const { isMobile } = useDevice()
</script>

<template>
<VFSpHeader v-if="isMobile" />
<VFHeader v-if="!isMobile" />
<VFSpHeader v-if="isMobile">
<VFLocaleSwitch />
</VFSpHeader>
<VFHeader v-if="!isMobile">
<VFLocaleSwitch />
</VFHeader>
</template>
1 change: 1 addition & 0 deletions packages/ui/components/common/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const { headerRef } = useHeader()
<a class="link" href="/" aria-label="Vue Fes Japan 2024">
<Logo class="logo" color="vue-blue" />
</a>
<slot />
</div>
</header>
</template>
Expand Down
1 change: 1 addition & 0 deletions packages/ui/components/common/SpHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const { color } = useColor()
<a class="link" href="/" aria-label="Vue Fes Japan 2024">
<Logo class="logo" color="vue-blue" />
</a>
<slot />
</div>
</header>
</template>
Expand Down

0 comments on commit 4123511

Please sign in to comment.