diff --git a/studio/components/layouts/StorageLayout/StorageMenu.tsx b/studio/components/layouts/StorageLayout/StorageMenu.tsx index 91a77f9008a..a1e64d1f055 100644 --- a/studio/components/layouts/StorageLayout/StorageMenu.tsx +++ b/studio/components/layouts/StorageLayout/StorageMenu.tsx @@ -12,10 +12,13 @@ import { IconPlus, IconLoader, IconMoreVertical, + Alert, + IconEdit, } from '@supabase/ui' import { STORAGE_ROW_STATUS } from 'components/to-be-cleaned/Storage/Storage.constants' import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore' +import { Group } from '@supabase/ui/dist/cjs/components/Menu/Menu' interface Props {} @@ -37,75 +40,70 @@ const StorageMenu: FC = () => { } = storageExplorerStore || {} return ( - -
+ +
-
-
- - All buckets - +
+
+
+ + {!loaded ? ( +
+ + Loading buckets +
+ ) : ( + <> + {buckets.length === 0 && ( +
+ There are no tables in this schema +
+ )} + {buckets.map((bucket: any, idx: number) => { + const isSelected = bucketId === bucket.id + return ( + + ) + })} + + )} +
-
- {!loaded ? ( -
- - Loading buckets -
- ) : ( - <> - {buckets.length === 0 && ( -
- No buckets available -
- )} - {buckets.map((bucket: any, idx: number) => { - const isSelected = bucketId === bucket.id - return ( - - ) - })} - - )} -
-
-
-
- - Settings - -
-