mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
support props injection
This commit is contained in:
parent
2f14c11cd4
commit
616a2da2c5
@ -84,7 +84,9 @@ export class PagePanelWithNavMenu extends React.Component {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|
||||||
return React.createElement(tab.component)
|
const componentProps = tab.props ?? this.props.tabProps
|
||||||
|
|
||||||
|
return React.createElement(tab.component, componentProps)
|
||||||
}
|
}
|
||||||
|
|
||||||
replaceQueryTypeToCurrentTab = () => {
|
replaceQueryTypeToCurrentTab = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user