Skip to content

Commit

Permalink
Incorporate new PropertesTable rows
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Dec 19, 2024
1 parent 4a4e3e8 commit d5b167e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions app/forms/floating-ip-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ import { addToast } from '~/stores/toast'
import { EmptyCell } from '~/table/cells/EmptyCell'
import { IpPoolCell } from '~/table/cells/IpPoolCell'
import { CopyableIp } from '~/ui/lib/CopyableIp'
import { DateTime } from '~/ui/lib/DateTime'
import { PropertiesTable } from '~/ui/lib/PropertiesTable'
import { Truncate } from '~/ui/lib/Truncate'
import { ALL_ISH } from '~/util/consts'
import type * as PP from '~/util/path-params'
import { pb } from 'app/util/path-builder'
Expand Down Expand Up @@ -85,15 +83,9 @@ export function EditFloatingIpSideModalForm() {
submitError={editFloatingIp.error}
>
<PropertiesTable>
<PropertiesTable.Row label="ID">
<Truncate text={floatingIp.id} maxLength={32} hasCopyButton />
</PropertiesTable.Row>
<PropertiesTable.Row label="Created">
<DateTime date={floatingIp.timeCreated} />
</PropertiesTable.Row>
<PropertiesTable.Row label="Updated">
<DateTime date={floatingIp.timeModified} />
</PropertiesTable.Row>
<PropertiesTable.IdRow id={floatingIp.id} />
<PropertiesTable.DateRow label="Created" date={floatingIp.timeCreated} />
<PropertiesTable.DateRow label="Updated" date={floatingIp.timeModified} />
<PropertiesTable.Row label="IP Address">
<CopyableIp ip={floatingIp.ip} isLinked={false} />
</PropertiesTable.Row>
Expand Down

0 comments on commit d5b167e

Please sign in to comment.