diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/system')
-rw-r--r-- | server/sonar-web/src/main/js/apps/system/routes.ts (renamed from server/sonar-web/src/main/js/apps/system/routes.js) | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/routes.js b/server/sonar-web/src/main/js/apps/system/routes.ts index 0ab080a46f4..9f7f40c4cd2 100644 --- a/server/sonar-web/src/main/js/apps/system/routes.js +++ b/server/sonar-web/src/main/js/apps/system/routes.ts @@ -17,10 +17,12 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { RouterState, IndexRouteProps } from 'react-router'; + const routes = [ { - getIndexRoute(_, callback) { - import('./main').then(i => callback(null, { component: i.default })); + getIndexRoute(_: RouterState, callback: (err: any, route: IndexRouteProps) => any) { + import('./main').then(i => callback(null, { component: (i as any).default })); } } ]; |