mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 15:28:40 +08:00
adding debugPlugins
This commit is contained in:
@@ -93,11 +93,12 @@ class Slot extends React.Component {
|
||||
children = children.map(childFactory);
|
||||
}
|
||||
|
||||
const debugProps = pluginsConfig.debug
|
||||
? {
|
||||
'data-slot-name': fill,
|
||||
}
|
||||
: {};
|
||||
const debugProps =
|
||||
debugPlugins || pluginsConfig.debug
|
||||
? {
|
||||
'data-slot-name': fill,
|
||||
}
|
||||
: {};
|
||||
|
||||
return (
|
||||
<Component
|
||||
@@ -122,6 +123,7 @@ Slot.defaultProps = {
|
||||
};
|
||||
|
||||
Slot.propTypes = {
|
||||
debugPlugins: PropTypes.bool,
|
||||
fill: PropTypes.string.isRequired,
|
||||
inline: PropTypes.bool,
|
||||
className: PropTypes.string,
|
||||
|
||||
Reference in New Issue
Block a user