Skip to content

Commit

Permalink
fix(theme): fix custom NotFound component rendering (#1163)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz>
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
Roman3349 and brc-dd committed Aug 14, 2022
1 parent 8f80bd0 commit 4a6eda4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/app/index.ts
Expand Up @@ -16,7 +16,7 @@ import { dataSymbol, initData } from './data'
import { Content } from './components/Content'
import { ClientOnly } from './components/ClientOnly'

const NotFound = Theme.NotFound || (() => '404 Not Found')
export const NotFound = Theme.NotFound || (() => '404 Not Found')

const VitePressApp = {
name: 'VitePressApp',
Expand Down
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPContent.vue
Expand Up @@ -2,7 +2,7 @@
import { useRoute, useData } from 'vitepress'
import { useCopyCode } from '../composables/copy-code'
import { useSidebar } from '../composables/sidebar'
import NotFound from '../NotFound.vue'
import { NotFound } from '../../app'
import VPPage from './VPPage.vue'
import VPHome from './VPHome.vue'
import VPDoc from './VPDoc.vue'
Expand Down

0 comments on commit 4a6eda4

Please sign in to comment.