Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

deprecated: alert - jwt settings (#31145)

hallidayo5935c2f3564a
diff --git a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx
index b270feccc1d..e73f464d5f7 100644
--- a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx
+++ b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx
@@ -26,7 +26,6 @@ import { useProjectPostgrestConfigQuery } from 'data/config/project-postgrest-co
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
import { uuidv4 } from 'lib/helpers'
import {
- Alert,
AlertDescription_Shadcn_,
AlertTitle_Shadcn_,
Alert_Shadcn_,
@@ -45,6 +44,7 @@ import {
JWT_SECRET_UPDATE_ERROR_MESSAGES,
JWT_SECRET_UPDATE_PROGRESS_MESSAGES,
} from './API.constants'
+import { Admonition } from 'ui-patterns'
const JWTSettings = () => {
const { ref: projectRef } = useParams()
@@ -192,12 +192,12 @@ const JWTSettings = () => {
)}
</div>
{isJwtSecretUpdateFailed ? (
- <Alert withIcon variant="warning" title="Failed to update JWT secret">
+ <Admonition type="warning" title="Failed to update JWT secret">
Please try again. If the failures persist, please contact Supabase support with
the following details: <br />
Change tracking ID: {data?.changeTrackingId} <br />
Error message: {jwtSecretUpdateErrorMessage}
- </Alert>
+ </Admonition>
) : null}
</div>
</>