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 <[email protected]>
Co-authored-by: Divyansh Singh <[email protected]>
  • Loading branch information
Roman3349 and brc-dd authored 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.