Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Rename NoticeBar and MigrationNotice components #894

Merged
merged 1 commit into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<NoticeBar>
<VNoticeBar>
{{ $t('migration-notice.intro') }}
<i18n tag="span" path="migration-notice.more">
<template #read-more>
Expand All @@ -11,14 +11,14 @@
>
</template>
</i18n>
</NoticeBar>
</VNoticeBar>
</template>

<script>
import NoticeBar from '~/components/NoticeBar/NoticeBar.vue'
import VNoticeBar from '~/components/VNoticeBar/VNoticeBar.vue'

export default {
name: 'MigrationNotice',
components: { NoticeBar },
name: 'VMigrationNotice',
components: { VNoticeBar },
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
* the parent component.
*/
export default {
name: 'NoticeBar',
name: 'VNoticeBar',
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Story,
} from '@storybook/addon-docs'

import NoticeBar from '~/components/NoticeBar/NoticeBar'
import NoticeBar from '@/components/VNoticeBar/VNoticeBar'

<Meta title="Components/Notice bar" component={NoticeBar} />

Expand Down
6 changes: 3 additions & 3 deletions src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="app grid h-screen overflow-hidden relative">
<div>
<VTeleportTarget name="skip-to-content" :force-destroy="true" />
<MigrationNotice v-show="isReferredFromCc" />
<VMigrationNotice v-show="isReferredFromCc" />
<VTranslationStatusBanner />
<VHeader />
</div>
Expand Down Expand Up @@ -33,7 +33,7 @@ import { isMinScreen } from '~/composables/use-media-query'
import { useMatchSearchRoutes } from '~/composables/use-match-routes'
import { useScroll } from '~/composables/use-scroll'

import MigrationNotice from '~/components/MigrationNotice.vue'
import VMigrationNotice from '~/components/VMigrationNotice.vue'
import VTranslationStatusBanner from '~/components/VTranslationStatusBanner.vue'
import VHeader from '~/components/VHeader/VHeader.vue'
import VModalTarget from '~/components/VModal/VModalTarget.vue'
Expand All @@ -44,7 +44,7 @@ import VTeleportTarget from '~/components/VTeleport/VTeleportTarget.vue'
const embeddedPage = {
name: 'embedded',
components: {
MigrationNotice,
VMigrationNotice,
VTranslationStatusBanner,
VHeader,
VModalTarget,
Expand Down