mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-15 10:23:10 +02:00
Use correct syntax for config routes (#1652)
This commit is contained in:
2
gradle/changelog/config_routes.yaml
Normal file
2
gradle/changelog/config_routes.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Use correct syntax for config routes ([#1652](https://github.com/scm-manager/scm-manager/pull/1652))
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user