From 7c7f9b763b199ae02d6becd03f8642ced0489b32 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Wed, 11 Dec 2024 12:16:57 -0800 Subject: [PATCH] use titleCrumb for Edit Internet Gateway --- app/routes.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/routes.tsx b/app/routes.tsx index 4329efad4..797be42ab 100644 --- a/app/routes.tsx +++ b/app/routes.tsx @@ -37,12 +37,7 @@ import { EditRouterSideModalForm } from './forms/vpc-router-edit' import { CreateRouterRouteSideModalForm } from './forms/vpc-router-route-create' import { EditRouterRouteSideModalForm } from './forms/vpc-router-route-edit' import { makeCrumb, titleCrumb } from './hooks/use-crumbs' -import { - getInstanceSelector, - getInternetGatewaySelector, - getProjectSelector, - getVpcSelector, -} from './hooks/use-params' +import { getInstanceSelector, getProjectSelector, getVpcSelector } from './hooks/use-params' import { AuthenticatedLayout } from './layouts/AuthenticatedLayout' import { AuthLayout } from './layouts/AuthLayout' import { SerialConsoleContentPane } from './layouts/helpers' @@ -390,10 +385,7 @@ export const routes = createRoutesFromElements( path=":gateway" element={} loader={EditInternetGatewayForm.loader} - handle={makeCrumb( - (p) => p.gateway!, - (p) => pb.vpcInternetGateway(getInternetGatewaySelector(p)) - )} + handle={titleCrumb('Edit Internet Gateway')} />