From 37c9491bc9abdabe31996bcdf38e1c677fca938a Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Wed, 15 May 2024 15:13:29 -0700 Subject: [PATCH] Remove Badge from IP Pool cell --- app/pages/project/floating-ips/FloatingIpsPage.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/pages/project/floating-ips/FloatingIpsPage.tsx b/app/pages/project/floating-ips/FloatingIpsPage.tsx index 685c461ab0..d0e0c318f0 100644 --- a/app/pages/project/floating-ips/FloatingIpsPage.tsx +++ b/app/pages/project/floating-ips/FloatingIpsPage.tsx @@ -32,7 +32,6 @@ import { InstanceLinkCell } from '~/table/cells/InstanceLinkCell' import { useColsWithActions, type MenuAction } from '~/table/columns/action-col' import { Columns } from '~/table/columns/common' import { PAGE_SIZE, useQueryTable } from '~/table/QueryTable' -import { Badge } from '~/ui/lib/Badge' import { CreateLink } from '~/ui/lib/CreateButton' import { EmptyMessage } from '~/ui/lib/EmptyMessage' import { Listbox } from '~/ui/lib/Listbox' @@ -81,13 +80,12 @@ FloatingIpsPage.loader = async ({ params }: LoaderFunctionArgs) => { const IpPoolCell = ({ ipPoolId }: { ipPoolId: string }) => { const pool = useApiQuery('projectIpPoolView', { path: { pool: ipPoolId } }).data if (!pool) return - const badge = {pool.name} return pool.description ? ( - {badge} + {pool.name} ) : ( - badge + <>{pool.name} ) }