diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-08-18 18:53:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 18:53:44 +0200 |
commit | 7983068e4d2a45531ba0942688e659adf9ee61a2 (patch) | |
tree | c481c4ef137cf8b1f4ac69d2917b51317d8c4dad /server/sonar-web/src/main/js/apps/system | |
parent | f98b26b3f33e0eb2788ca93a4b115585c527c737 (diff) | |
download | sonarqube-7983068e4d2a45531ba0942688e659adf9ee61a2.tar.gz sonarqube-7983068e4d2a45531ba0942688e659adf9ee61a2.zip |
translate all routes files to ts (#2378)
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 })); } } ]; |