mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Port to new Slot property passthrough
This commit is contained in:
@@ -5,9 +5,10 @@ import { Slot } from 'plugin-api/beta/client/components';
|
||||
class TabPane extends React.Component {
|
||||
render() {
|
||||
const { data, root } = this.props;
|
||||
const slotPassthrough = { data, root };
|
||||
return (
|
||||
<div>
|
||||
<Slot fill="profileSettings" data={data} queryData={{ root }} />
|
||||
<Slot fill="profileSettings" passthrough={slotPassthrough} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user