Skip to content

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

Update text on view selection in storage header

Terry Suttonc937b408e843
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js
index c3f155673d1..139a0be29cb 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.js
@@ -16,6 +16,7 @@ import {
IconEdit2,
IconLoader,
IconChevronsUp,
+ IconList,
} from 'ui'
import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'
import { STORAGE_VIEWS, STORAGE_SORT_BY, STORAGE_SORT_BY_ORDER } from '../Storage.constants.ts'
@@ -284,11 +285,18 @@ const FileExplorerHeader = ({
>
<Button
as="span"
- icon={<IconColumns size={16} strokeWidth={2} />}
+ icon={
+ view === 'LIST' ? (
+ <IconList size={16} strokeWidth={2} />
+ ) : (
+ <IconColumns size={16} strokeWidth={2} />
+ )
+ }
type="text"
disabled={breadcrumbs.length === 0}
+ onChange={onChangeView}
>
- Views
+ View as
</Button>
</Dropdown>
<Dropdown