-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1725 from storybooks/dd/docgen-static
Fix Docgen in static builds for Info
- Loading branch information
Showing
4 changed files
with
505 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
examples/cra-kitchen-sink/src/components/ImportedPropsButton.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import DocgenButton from './DocgenButton'; | ||
|
||
/** Button component description */ | ||
const ImportedPropsButton = ({ disabled, label, onClick }) => | ||
<button disabled={disabled} onClick={onClick}> | ||
{label} | ||
</button>; | ||
|
||
ImportedPropsButton.defaultProps = DocgenButton.defaultProps; | ||
|
||
ImportedPropsButton.propTypes = DocgenButton.propTypes; | ||
|
||
export default ImportedPropsButton; |
Oops, something went wrong.