Skip to content

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

Small refactor

Joshen Lim002f34cee3df
diff --git a/studio/components/interfaces/Storage/Storage.types.ts b/studio/components/interfaces/Storage/Storage.types.ts
index 4a4a09d3204..14216ae8d95 100644
--- a/studio/components/interfaces/Storage/Storage.types.ts
+++ b/studio/components/interfaces/Storage/Storage.types.ts
@@ -1,3 +1,9 @@
+import { PolicyFormField } from 'components/interfaces/Auth/Policies/Policies.types'
+
+export interface StoragePolicyFormField extends PolicyFormField {
+ allowedOperations: string[]
+}
+
export interface StorageBucket {
id: string
name: string
diff --git a/studio/components/to-be-cleaned/Storage/Storage.types.ts b/studio/components/to-be-cleaned/Storage/Storage.types.ts
deleted file mode 100644
index fc804257c03..00000000000
--- a/studio/components/to-be-cleaned/Storage/Storage.types.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { PolicyFormField } from 'components/interfaces/Auth/Policies/Policies.types'
-
-export interface StoragePolicyFormField extends PolicyFormField {
- allowedOperations: string[]
-}
-
-export interface StorageBucket {
- id: string
- name: string
- owner: string
- public: boolean
- file_size_limit: number
- allowed_mime_types: string[]
- created_at: string
- updated_at: string
-}
diff --git a/studio/components/to-be-cleaned/Storage/Storage.utils.ts b/studio/components/to-be-cleaned/Storage/Storage.utils.ts
index 3381687db15..59a96394fd1 100644
--- a/studio/components/to-be-cleaned/Storage/Storage.utils.ts
+++ b/studio/components/to-be-cleaned/Storage/Storage.utils.ts
@@ -1,6 +1,6 @@
import { trimEnd, groupBy, difference } from 'lodash'
import { STORAGE_CLIENT_LIBRARY_MAPPINGS } from './Storage.constants'
-import { StoragePolicyFormField } from './Storage.types'
+import { StoragePolicyFormField } from 'components/interfaces/Storage/Storage.types'
export const shortHash = (str: string) => {
let hash = 0