-
-
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.
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
.../docs/src/frameworks/react/__testfixtures__/9556-ts-react-default-exports/docgen.snapshot
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,33 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties 9556-ts-react-default-exports 1`] = ` | ||
"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
|
||
/* eslint-disable react/button-has-type */ | ||
import React from 'react'; | ||
export const Button = ({ | ||
isDisabled = false, | ||
...props | ||
}) => React.createElement(\\"button\\", _extends({ | ||
disabled: isDisabled | ||
}, props)); | ||
export const component = Button; | ||
Button.__docgenInfo = { | ||
\\"description\\": \\"\\", | ||
\\"methods\\": [], | ||
\\"displayName\\": \\"Button\\", | ||
\\"props\\": { | ||
\\"isDisabled\\": { | ||
\\"defaultValue\\": { | ||
\\"value\\": \\"false\\", | ||
\\"computed\\": false | ||
}, | ||
\\"required\\": false, | ||
\\"tsType\\": { | ||
\\"name\\": \\"boolean\\" | ||
}, | ||
\\"description\\": \\"\\" | ||
} | ||
} | ||
};" | ||
`; |
12 changes: 12 additions & 0 deletions
12
addons/docs/src/frameworks/react/__testfixtures__/9556-ts-react-default-exports/input.tsx
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,12 @@ | ||
/* eslint-disable react/button-has-type */ | ||
import React from 'react'; | ||
|
||
export interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
isDisabled?: boolean; | ||
} | ||
|
||
export const Button: React.FC<Props> = ({ isDisabled = false, ...props }: Props) => ( | ||
<button disabled={isDisabled} {...props} /> | ||
); | ||
|
||
export const component = Button; |
21 changes: 21 additions & 0 deletions
21
...s/src/frameworks/react/__testfixtures__/9556-ts-react-default-exports/properties.snapshot
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,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties 9556-ts-react-default-exports 1`] = ` | ||
Object { | ||
"rows": Array [ | ||
Object { | ||
"defaultValue": Object { | ||
"detail": undefined, | ||
"summary": "false", | ||
}, | ||
"description": "", | ||
"name": "isDisabled", | ||
"required": false, | ||
"type": Object { | ||
"detail": undefined, | ||
"summary": "boolean", | ||
}, | ||
}, | ||
], | ||
} | ||
`; |
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