Skip to content

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

ran prettier

Ollie Halliday3a6a3efbc4fe
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index 58709ad9687..db47cb3e255 100644
--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -220,51 +220,50 @@ const TableEditorMenu: FC<Props> = ({
{schemaTables.map((table) => {
const isActive = Number(id) === table.id
return (
- <ProductMenuItem
- key={table.name}
- url={`/project/${projectRef}/editor/${table.id}`}
- name={table.name}
- hoverText={table.comment ? table.comment : table.name}
- isActive={isActive}
- action={
- isActive && (
- <Dropdown
- size="small"
- side="bottom"
- align="start"
- overlay={[
- <Dropdown.Item
- key="edit-table"
- icon={<IconEdit size="tiny" />}
- onClick={() => onEditTable(table)}
- >
- Edit Table
- </Dropdown.Item>,
- <Dropdown.Item
- key="duplicate-table"
- icon={<IconCopy size="tiny" />}
- onClick={() => onDuplicateTable(table)}
- >
- Duplicate Table
- </Dropdown.Item>,
- <Dropdown.Seperator />,
- <Dropdown.Item
- key="delete-table"
- icon={<IconTrash size="tiny" />}
- onClick={() => onDeleteTable(table)}
- >
- Delete Table
- </Dropdown.Item>,
- ]}
+ <ProductMenuItem
+ key={table.name}
+ url={`/project/${projectRef}/editor/${table.id}`}
+ name={table.name}
+ hoverText={table.comment ? table.comment : table.name}
+ isActive={isActive}
+ action={
+ isActive && (
+ <Dropdown
+ size="small"
+ side="bottom"
+ align="start"
+ overlay={[
+ <Dropdown.Item
+ key="edit-table"
+ icon={<IconEdit size="tiny" />}
+ onClick={() => onEditTable(table)}
>
- <div className="text-scale-900 hover:text-scale-1200 transition-colors">
- <IconChevronDown size={14} strokeWidth={2} />
- </div>
- </Dropdown>
- )
- }
- />
-
+ Edit Table
+ </Dropdown.Item>,
+ <Dropdown.Item
+ key="duplicate-table"
+ icon={<IconCopy size="tiny" />}
+ onClick={() => onDuplicateTable(table)}
+ >
+ Duplicate Table
+ </Dropdown.Item>,
+ <Dropdown.Seperator />,
+ <Dropdown.Item
+ key="delete-table"
+ icon={<IconTrash size="tiny" />}
+ onClick={() => onDeleteTable(table)}
+ >
+ Delete Table
+ </Dropdown.Item>,
+ ]}
+ >
+ <div className="text-scale-900 hover:text-scale-1200 transition-colors">
+ <IconChevronDown size={14} strokeWidth={2} />
+ </div>
+ </Dropdown>
+ )
+ }
+ />
)
})}
</div>
diff --git a/studio/components/ui/ProductMenu/ProductMenuItem.tsx b/studio/components/ui/ProductMenu/ProductMenuItem.tsx
index 5f76a228148..eafbec75206 100644
--- a/studio/components/ui/ProductMenu/ProductMenuItem.tsx
+++ b/studio/components/ui/ProductMenu/ProductMenuItem.tsx
@@ -25,7 +25,7 @@ const ProductMenuItem: FC<Props> = ({
target = '_self',
onClick,
textClassName = '',
- hoverText = ''
+ hoverText = '',
}) => {
const menuItem = (
<Menu.Item icon={icon} rounded active={isActive} onClick={onClick}>