Skip to content

Commit

Permalink
chore: uses custom live preview component if one is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
kendelljoseph committed Oct 29, 2024
1 parent c7bde52 commit a50ab67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next/src/views/Document/getViewsFromConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ export const getViewsFromConfig = ({
DefaultView = {
Component: DefaultLivePreviewView,
}
CustomView = {
payloadComponent: getCustomViewByKey(views, 'livePreview'),
}
}
break
}
Expand Down Expand Up @@ -314,6 +317,9 @@ export const getViewsFromConfig = ({
DefaultView = {
Component: DefaultLivePreviewView,
}
CustomView = {
payloadComponent: getCustomViewByKey(views, 'livePreview'),
}
}
break
}
Expand Down

0 comments on commit a50ab67

Please sign in to comment.