| OLD | NEW |
| 1 library portfolio; | 1 library portfolio; |
| 2 | 2 |
| 3 import 'package:web_ui/web_ui.dart'; | 3 import 'package:web_ui/web_ui.dart'; |
| 4 import 'package:route_hierarchical/client.dart'; | 4 import 'package:route_hierarchical/client.dart'; |
| 5 | 5 |
| 6 import 'index.dart'; | 6 import 'index.dart'; |
| 7 | 7 |
| 8 class HomeComponent extends WebComponent { | 8 class HomeComponent extends WebComponent { |
| 9 var links = <String, Map<String, String>>{}; | 9 var links = <String, Map<String, String>>{}; |
| 10 | 10 |
| 11 created() { | 11 created() { |
| 12 ['100001', '111111'].forEach((companyId) { | 12 ['100001', '111111'].forEach((companyId) { |
| 13 links[companyId] = {}; | 13 links[companyId] = {}; |
| 14 ['info', 'activities', 'notes'].forEach((mode) => | 14 ['info', 'activities', 'notes'].forEach((mode) => |
| 15 links[companyId][mode] = router.url('companyInfo.companyId.' + mode, | 15 links[companyId][mode] = router.url('companyInfo.companyId.' + mode, |
| 16 parameters: { | 16 parameters: { |
| 17 'companyId': companyId | 17 'companyId': companyId |
| 18 })); | 18 })); |
| 19 }); | 19 }); |
| 20 } | 20 } |
| 21 } | 21 } |
| OLD | NEW |