mirror of
https://github.com/wassname/talk.git
synced 2026-07-18 12:40:13 +08:00
Correct prop types 2
This commit is contained in:
@@ -91,7 +91,7 @@ Slot.propTypes = {
|
||||
className: PropTypes.string,
|
||||
reduxState: PropTypes.object,
|
||||
defaultComponent: PropTypes.oneOfType([
|
||||
PropTypes.component,
|
||||
PropTypes.func,
|
||||
PropTypes.string,
|
||||
]),
|
||||
|
||||
@@ -99,7 +99,10 @@ Slot.propTypes = {
|
||||
* You may specify the component to use as the root wrapper.
|
||||
* Defaults to 'div'.
|
||||
*/
|
||||
component: PropTypes.any,
|
||||
component: PropTypes.oneOfType([
|
||||
PropTypes.func,
|
||||
PropTypes.string,
|
||||
]),
|
||||
|
||||
// props coming from graphql must be passed through this property.
|
||||
queryData: PropTypes.object,
|
||||
|
||||
Reference in New Issue
Block a user