Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 15, 2023
1 parent fab5a44 commit 8afb351
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
import { getSearchResults, isDark } from '../store'
import { isElectron } from '../env'
export default defineComponent(() => {
const route = useRoute()
export default defineComponent({
setup() {
const route = useRoute()
return {
...getSearchResults(),
isElectron,
isDark,
showNav: computed(() => !route.path.startsWith('/collection')),
isHomepage: computed(() => route.path === '/'),
return {
...getSearchResults(),
isElectron,
isDark,
showNav: computed(() => !route.path.startsWith('/collection')),
isHomepage: computed(() => route.path === '/'),
}
}

Check failure on line 16 in src/components/Navbar.vue

View workflow job for this annotation

GitHub Actions / lint

Missing trailing comma
})
</script>
Expand Down

0 comments on commit 8afb351

Please sign in to comment.