@@ -36,11 +36,12 @@ import { addToast } from '~/stores/toast'
3636import { TypeValueCell } from '~/table/cells/TypeValueCell'
3737import { useColsWithActions , type MenuAction } from '~/table/columns/action-col'
3838import { useQueryTable } from '~/table/QueryTable'
39+ import { CardBlock } from '~/ui/lib/CardBlock'
3940import { CreateButton , CreateLink } from '~/ui/lib/CreateButton'
41+ import { Divider } from '~/ui/lib/Divider'
4042import { EmptyMessage } from '~/ui/lib/EmptyMessage'
4143import { PageHeader , PageTitle } from '~/ui/lib/PageHeader'
4244import { PropertiesTable } from '~/ui/lib/PropertiesTable'
43- import { TableControls , TableTitle } from '~/ui/lib/Table'
4445import { docLinks } from '~/util/links'
4546import { pb } from '~/util/path-builder'
4647import type * as PP from '~/util/path-params'
@@ -199,22 +200,24 @@ export default function RouterPage() {
199200 < PropertiesTable . DateRow date = { routerData . timeCreated } label = "Created" />
200201 < PropertiesTable . DateRow date = { routerData . timeModified } label = "Last Modified" />
201202 </ PropertiesTable >
202- < TableControls className = "mb-3" >
203- < TableTitle > Routes</ TableTitle >
204- { canCreateNewRoute ? (
205- < CreateLink to = { pb . vpcRouterRoutesNew ( { project, vpc, router } ) } >
206- New route
207- </ CreateLink >
208- ) : (
209- < CreateButton
210- disabled
211- disabledReason = { routeFormMessage . noNewRoutesOnSystemRouter }
212- >
213- New route
214- </ CreateButton >
215- ) }
216- </ TableControls >
217- { table }
203+ < Divider className = "my-8" />
204+ < CardBlock >
205+ < CardBlock . Header title = "Routes" description = "Rules for directing network traffic" >
206+ { canCreateNewRoute ? (
207+ < CreateLink to = { pb . vpcRouterRoutesNew ( { project, vpc, router } ) } >
208+ New route
209+ </ CreateLink >
210+ ) : (
211+ < CreateButton
212+ disabled
213+ disabledReason = { routeFormMessage . noNewRoutesOnSystemRouter }
214+ >
215+ New route
216+ </ CreateButton >
217+ ) }
218+ </ CardBlock . Header >
219+ < CardBlock . Body > { table } </ CardBlock . Body >
220+ </ CardBlock >
218221 < Outlet />
219222 </ >
220223 )
0 commit comments