Use correct syntax for config routes (#1652)

This commit is contained in:
Eduard Heimbuch
2021-05-12 13:46:28 +02:00
committed by GitHub
parent 708f262454
commit b6b304f338
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
- type: fixed
description: Use correct syntax for config routes ([#1652](https://github.com/scm-manager/scm-manager/pull/1652))

View File

@@ -48,7 +48,11 @@ class ConfigurationBinder {
}
route(path: string, Component: any) {
return <Route path={path} render={() => Component} exact />;
return (
<Route path={path} exact>
{Component}
</Route>
);
}
bindGlobal(to: string, labelI18nKey: string, linkName: string, ConfigurationComponent: any) {