Skip to content

Commit

Permalink
fix(docz): pass useScoping to theme Playground
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer committed Feb 13, 2020
1 parent b80524f commit 6ec7315
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/docz/src/components/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface PlaygroundProps {
__scope: Record<string, any>
__position: number
__code: string
useScoping?: boolean
language?: string
}

Expand All @@ -22,6 +23,7 @@ export const Playground: SFC<PlaygroundProps> = ({
__position,
__code,
language,
useScoping,
}) => {
const components = useComponents()
const PlaygroundComponent = components.playground
Expand All @@ -38,6 +40,7 @@ export const Playground: SFC<PlaygroundProps> = ({
position={__position}
code={__code}
language={language}
useScoping={useScoping}
/>
)
}
1 change: 1 addition & 0 deletions core/docz/src/hooks/useComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface PlaygroundProps {
scope: Record<string, any>
language?: string
showLivePreview?: boolean
useScoping?: boolean
}

export interface LayoutProps {
Expand Down

0 comments on commit 6ec7315

Please sign in to comment.