mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
## Problem Now that we migrated old components to their new shadcn alternatives, we don't need the `_Shadcn_` suffix anymore. ## Solution Remove it <img width="659" height="609" alt="image" src="https://github.com/user-attachments/assets/2d7271a9-066a-4dcc-92fe-729b106d2c2f" />
25 lines
853 B
TypeScript
25 lines
853 B
TypeScript
import { AlertCircle } from 'lucide-react'
|
|
import { Alert, AlertTitle } from 'ui'
|
|
|
|
import { PostgrestConfig } from './PostgrestConfig'
|
|
import { ScaffoldSection } from '@/components/layouts/Scaffold'
|
|
import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'
|
|
import { PROJECT_STATUS } from '@/lib/constants'
|
|
|
|
export const ServiceList = () => {
|
|
const { data: project, isPending: isLoading } = useSelectedProjectQuery()
|
|
|
|
return (
|
|
<ScaffoldSection isFullWidth id="api-settings" className="gap-6">
|
|
{!isLoading && project?.status !== PROJECT_STATUS.ACTIVE_HEALTHY ? (
|
|
<Alert variant="destructive">
|
|
<AlertCircle size={16} />
|
|
<AlertTitle>API settings are unavailable as the project is not active</AlertTitle>
|
|
</Alert>
|
|
) : (
|
|
<PostgrestConfig />
|
|
)}
|
|
</ScaffoldSection>
|
|
)
|
|
}
|