Small refactor

This commit is contained in:
Joshen Lim committed 2023-04-11 21:59:10 +07:00
1 parent b1a7802c92
commit 002f34cee3
3 files changed
+7 -17

No files matched your search

@@ -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
@@ -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
}
@@ -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