Skip to content

Commit

Permalink
fix: code styling in Header and Sidebar components
Browse files Browse the repository at this point in the history
  • Loading branch information
RVitaly1978 committed Apr 27, 2023
1 parent 2137205 commit 6cb5f9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/docs/components/layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<header-selector
class="mr-3"
:minimized="isSidebarVisible"
@toggleSidebar="toggleSidebar"
@toggle-sidebar="toggleSidebar"
/>
<NuxtLink
v-slot="{ navigate, href }"
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/components/layout/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
v-for="(route, key) in navigationRoutes"
:key="key"
>
<template #header="{ value, hasKeyboardFocus }">
<template #header="{ value: isCollapsed, hasKeyboardFocus }">
<va-sidebar-item
class="sidebar__collapse-custom-header"
:class="{
Expand All @@ -21,7 +21,7 @@
}"
>
{{ t(route.displayName) }}
<va-icon :name="value ? 'va-arrow-up' : 'va-arrow-down'" />
<va-icon :name="isCollapsed ? 'va-arrow-up' : 'va-arrow-down'" />
</va-sidebar-item>
</template>
<div
Expand Down Expand Up @@ -66,7 +66,7 @@
</template>

<script lang="ts">
import { defineComponent, watch, ref, computed, PropType } from 'vue'
import { defineComponent, watch, ref, computed } from 'vue'
import { useRoute } from 'vue-router'
import { useI18n } from 'vue-i18n'
Expand Down Expand Up @@ -106,6 +106,7 @@ export default defineComponent({
visible: { type: Boolean, default: false },
mobile: { type: Boolean, default: false },
},
emits: ['update:visible'],
setup: (props, { emit }) => {
const i18n = useI18n()
const route = useRoute()
Expand Down Expand Up @@ -147,7 +148,6 @@ export default defineComponent({
return {
...i18n,
navigationRoutes: getSortedNavigationRoutes(navigationRoutes),
route,
getColor,
writableVisible,
sidebarWidth,
Expand Down

0 comments on commit 6cb5f9a

Please sign in to comment.