mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
## Problem We now export components under a subpath in ui-patterns to avoid barrel files as they slow down every tools (from IDE to linters, etc.) and may also affect bundles our users have to download. ## Solution - Remove the UI patterns index file - Fix invalid impors
29 lines
929 B
TypeScript
29 lines
929 B
TypeScript
import { useParams } from 'common'
|
|
import Link from 'next/link'
|
|
import { Button } from 'ui'
|
|
import { Admonition } from 'ui-patterns/admonition'
|
|
|
|
const PublicSchemaNotEnabledAlert = () => {
|
|
const { ref: projectRef } = useParams()
|
|
|
|
return (
|
|
<Admonition type="default">
|
|
<p className="mt-0! mb-1.5!">The public schema for this project is not exposed</p>
|
|
<p className="mt-0! mb-1.5! text-foreground-light">
|
|
You will not be able to query tables and views in the public schema via supabase-js or HTTP
|
|
clients. Configure this behavior in your project's Data API settings.
|
|
</p>
|
|
<Button asChild variant="default" className="mt-1">
|
|
<Link
|
|
href={`/project/${projectRef}/settings/api#postgrest-config`}
|
|
className="no-underline!"
|
|
>
|
|
View API settings
|
|
</Link>
|
|
</Button>
|
|
</Admonition>
|
|
)
|
|
}
|
|
|
|
export default PublicSchemaNotEnabledAlert
|