Skip to content

Commit

Permalink
use titleCrumb for Edit Internet Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Dec 11, 2024
1 parent 49dfca3 commit 7c7f9b7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -390,10 +385,7 @@ export const routes = createRoutesFromElements(
path=":gateway"
element={<EditInternetGatewayForm />}
loader={EditInternetGatewayForm.loader}
handle={makeCrumb(
(p) => p.gateway!,
(p) => pb.vpcInternetGateway(getInternetGatewaySelector(p))
)}
handle={titleCrumb('Edit Internet Gateway')}
/>
</Route>
</Route>
Expand Down

0 comments on commit 7c7f9b7

Please sign in to comment.