Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Format tooltip text

Joshen Lim6640bb85bb5a
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index a579fe17af2..865782e3da6 100644
--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -382,6 +382,13 @@ const EntityListItem = ({
isLoadingTableMetadata = false,
}: EntityListItemProps) => {
const isActive = Number(id) === entity.id
+ const formatTooltipText = (entityType: string) => {
+ return Object.entries(ENTITY_TYPE)
+ .find(([, value]) => value === entityType)?.[0]
+ ?.toLowerCase()
+ ?.split('_')
+ ?.join(' ')
+ }
return (
<ProductMenuItem
@@ -434,9 +441,7 @@ const EntityListItem = ({
].join(' ')}
>
<span className="text-xs text-scale-1200 capitalize">
- {Object.entries(ENTITY_TYPE)
- .find(([, value]) => value === entity.type)?.[0]
- ?.toLowerCase()}
+ {formatTooltipText(entity.type)}
</span>
</div>
</Tooltip.Content>