DataApiDisabledAlert.tsx19 lines · main
| 1 | import { Alert, AlertDescription, AlertTitle, WarningIcon } from 'ui' |
| 2 | |
| 3 | export const DataApiDisabledAlert = () => { |
| 4 | return ( |
| 5 | <Alert variant="warning"> |
| 6 | <WarningIcon /> |
| 7 | <AlertTitle>No schemas can be queried</AlertTitle> |
| 8 | <AlertDescription> |
| 9 | <p> |
| 10 | With this setting disabled, you will not be able to query any schemas via the Data API. |
| 11 | </p> |
| 12 | <p> |
| 13 | You will see errors from the Postgrest endpoint{' '} |
| 14 | <code className="text-code-inline">/rest/v1/</code>. |
| 15 | </p> |
| 16 | </AlertDescription> |
| 17 | </Alert> |
| 18 | ) |
| 19 | } |