mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
cleanup
This commit is contained in:
1 parent
4100321c3e
commit
e8dc502bd4
3 files changed
+5
-6
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import type { PostgresExtension, PostgresSchema } from '@supabase/postgres-meta'
|
||||
import type { PostgresExtension } from '@supabase/postgres-meta'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Button, Form, IconDatabase, IconPlus, Input, Listbox, Modal } from 'ui'
|
||||
|
||||
@@ -162,7 +162,7 @@ const EnableExtensionModal = ({ visible, extension, onCancel }: EnableExtensionM
|
||||
Create a new schema "{extension.name}"
|
||||
</Listbox.Option>
|
||||
<Modal.Separator />
|
||||
{schemas?.map((schema: PostgresSchema) => {
|
||||
{schemas?.map((schema) => {
|
||||
return (
|
||||
<Listbox.Option
|
||||
key={schema.id}
|
||||
|
||||
@@ -26,7 +26,7 @@ import { useProjectJsonSchemaQuery } from 'data/docs/project-json-schema-query'
|
||||
import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'
|
||||
import { sqlKeys } from 'data/sql/keys'
|
||||
import { useTableRowUpdateMutation } from 'data/table-rows/table-row-update-mutation'
|
||||
import { useCheckPermissions, useFlag, useStore, useUrlState } from 'hooks'
|
||||
import { useCheckPermissions, useStore, useUrlState } from 'hooks'
|
||||
import useEntityType from 'hooks/misc/useEntityType'
|
||||
import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'
|
||||
import { useTableEditorStateSnapshot } from 'state/table-editor'
|
||||
@@ -103,7 +103,6 @@ const TableGridEditor = ({
|
||||
const { ref: projectRef, id } = useParams()
|
||||
const gridRef = useRef<SupabaseGridRef>(null)
|
||||
|
||||
const isVaultEnabled = useFlag('vaultExtension')
|
||||
const [encryptedColumns, setEncryptedColumns] = useState([])
|
||||
const [apiPreviewPanelOpen, setApiPreviewPanelOpen] = useState(false)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ const HooksPage: NextPageWithLayout = () => {
|
||||
|
||||
const {
|
||||
data: schemas,
|
||||
isLoading: isSchemasLoading,
|
||||
isLoading: isLoadingSchemas,
|
||||
refetch,
|
||||
} = useSchemasQuery({
|
||||
projectRef: project?.ref,
|
||||
@@ -78,7 +78,7 @@ const HooksPage: NextPageWithLayout = () => {
|
||||
return <NoPermission isFullPage resourceText="view database webhooks" />
|
||||
}
|
||||
|
||||
if (isSchemasLoading) {
|
||||
if (isLoadingSchemas) {
|
||||
return (
|
||||
<div className="w-full h-full flex items-center justify-center space-x-2">
|
||||
<IconLoader className="animate-spin" size="tiny" strokeWidth={1.5} />
|
||||
|
||||
Reference in new issue
Block a user