Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit a1f6be0

Browse files
authored
Merge pull request #19 from chrisjaure/master
update to support change in withInfo addon
2 parents 6eb5cb7 + 0422caf commit a1f6be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ addKnobResolver({
5757
export const withSmartKnobs = (story, context) => {
5858
const component = story(context)
5959

60-
let target = component.props.marksyConf && component.props.propTables && component.props.propTablesExclude
60+
let target = component.props.components && component.props.propTables && component.props.propTablesExclude
6161
? component.props.children
6262
: component
6363

@@ -83,7 +83,7 @@ export const withSmartKnobs = (story, context) => {
8383

8484
const newProps = resolvePropValues(finalProps, defaultProps)
8585

86-
if (component.props.marksyConf) {
86+
if (component.props.components) {
8787
return cloneElement(component, { ...component.props, children: cloneElement(component.props.children, newProps) })
8888
}
8989

0 commit comments

Comments
 (0)