mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
inject props to each extension
This commit is contained in:
@@ -17,7 +17,8 @@ class Footer extends React.Component<Props> {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
const extensions = binder.getExtensions("footer.links", { me, links });
|
const extensionProps = { me, links };
|
||||||
|
const extensions = binder.getExtensions("footer.links", extensionProps);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer className="footer">
|
<footer className="footer">
|
||||||
@@ -40,7 +41,7 @@ class Footer extends React.Component<Props> {
|
|||||||
{extensions.map(Ext => (
|
{extensions.map(Ext => (
|
||||||
<>
|
<>
|
||||||
{" "}
|
{" "}
|
||||||
| <Ext />
|
| <Ext {...extensionProps} />
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user