@@ -611,6 +611,8 @@ const emergencyIndex = customWrapRoute({
611611 '#activities' : 'activities' ,
612612 '#surge' : 'surge' ,
613613 } ,
614+ // TODO: make this typesafe
615+ forwardUnmatchedHashTo : 'additional-info' ,
614616 } ,
615617 } ,
616618 context : {
@@ -670,6 +672,7 @@ const emergencySurge = customWrapRoute({
670672 } ,
671673} ) ;
672674
675+ // TODO: remove this route
673676const emergencyAdditionalInfoOne = customWrapRoute ( {
674677 parent : emergenciesLayout ,
675678 path : 'additional-info-1' ,
@@ -684,6 +687,7 @@ const emergencyAdditionalInfoOne = customWrapRoute({
684687 visibility : 'anything' ,
685688 } ,
686689} ) ;
690+ // TODO: remove this route
687691const emergencyAdditionalInfoTwo = customWrapRoute ( {
688692 parent : emergenciesLayout ,
689693 path : 'additional-info-2' ,
@@ -698,6 +702,7 @@ const emergencyAdditionalInfoTwo = customWrapRoute({
698702 visibility : 'anything' ,
699703 } ,
700704} ) ;
705+ // TODO: remove this route
701706const emergencyAdditionalInfoThree = customWrapRoute ( {
702707 parent : emergenciesLayout ,
703708 path : 'additional-info-3' ,
@@ -713,6 +718,19 @@ const emergencyAdditionalInfoThree = customWrapRoute({
713718 } ,
714719} ) ;
715720
721+ const emergencyAdditionalInfo = customWrapRoute ( {
722+ parent : emergenciesLayout ,
723+ path : 'additional-info/:tabId?' ,
724+ component : {
725+ render : ( ) => import ( '#views/EmergencyAdditionalTab' ) ,
726+ props : { } ,
727+ } ,
728+ context : {
729+ title : 'Emergency Additional Info Tab' ,
730+ visibility : 'anything' ,
731+ } ,
732+ } ) ;
733+
716734type DefaultSurgeChild = 'overview ';
717735const surgeLayout = customWrapRoute ( {
718736 parent : rootLayout ,
@@ -2975,6 +2993,7 @@ const wrappedRoutes = {
29752993 emergencyAdditionalInfoOne,
29762994 emergencyAdditionalInfoTwo,
29772995 emergencyAdditionalInfoThree,
2996+ emergencyAdditionalInfo,
29782997 surgeLayout,
29792998 surgeOverview,
29802999 surgeOperationalToolbox,
0 commit comments