Added a props prop to TimelineInjectionRoot for child injection
• Added: - a props prop to TimelineInjectionRoot for child injection
This commit is contained in:
parent
84007841a4
commit
f97e43b173
@ -64,7 +64,7 @@ class TimelineInjectionRoot extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { type } = this.props
|
const { props, type } = this.props
|
||||||
const { width } = this.state
|
const { width } = this.state
|
||||||
|
|
||||||
const visible = !!type
|
const visible = !!type
|
||||||
@ -90,6 +90,7 @@ class TimelineInjectionRoot extends React.PureComponent {
|
|||||||
<Component
|
<Component
|
||||||
isXS={isXS}
|
isXS={isXS}
|
||||||
injectionId={type}
|
injectionId={type}
|
||||||
|
{...props}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -102,6 +103,11 @@ class TimelineInjectionRoot extends React.PureComponent {
|
|||||||
|
|
||||||
TimelineInjectionRoot.propTypes = {
|
TimelineInjectionRoot.propTypes = {
|
||||||
type: PropTypes.string,
|
type: PropTypes.string,
|
||||||
|
props: PropTypes.object,
|
||||||
|
}
|
||||||
|
|
||||||
|
TimelineInjectionRoot.defaultProps = {
|
||||||
|
props: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default TimelineInjectionRoot
|
export default TimelineInjectionRoot
|
Loading…
x
Reference in New Issue
Block a user