Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minitable to Floating IP side modal #2630

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Incorporate new PropertesTable rows
  • Loading branch information
charliepark committed Dec 19, 2024
commit d5b167ea6f7adb205bd9b3aef3df8775cf1da2d8
14 changes: 3 additions & 11 deletions app/forms/floating-ip-edit.tsx
Original file line number Diff line number Diff line change
@@ -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'
@@ -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>
Loading