Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

fix(docs): made codesandbox dependencies dynamic per component #101

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

evwilkin
Copy link
Member

@evwilkin evwilkin commented Nov 6, 2019

Fix for #100

@@ -41,6 +43,13 @@ export const getReactParams = (title, code) => {
toRender = equalityMatch[1];
code = code.replace(/(\w+) =/, `const ${toRender} =`)
}

const dependencies = {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: you can just put react: '^16.8.0', react-dom: '^16.8.0' in here to begin with.

'@patternfly/react-topology': 'latest',
'@patternfly/react-virtualized-extension': 'latest',
'@patternfly/react-icons': 'latest',
...dependencies,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we don't have to use the spread operator that compiles pretty ugly.

@redallen redallen merged commit 6e93657 into patternfly:master Nov 6, 2019
@redallen
Copy link
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants