Skip to content

Commit

Permalink
fix: add isMDXComponent from mdxjs
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 3, 2020
1 parent 028e366 commit 8f800c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/core/src/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ export interface Document {
* for MDX documents, this is an MDXContent function, to be rendered inside a MDXProvider
*/
MDXPage?: any;

/**
* custom prop set by mdxjs
*/
isMDXComponent?: boolean;
}

export const dateToLocalString = (date?: Date): string =>
Expand Down
2 changes: 2 additions & 0 deletions core/store/src/serialization/load-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const loadStoryStore = (
if (storeDoc && storeStories && s.stories) {
const doc = storeDoc;
const {
isMDXComponent,
tags,
title,
order,
type,
Expand Down

0 comments on commit 8f800c1

Please sign in to comment.