mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
* List all integrations in the landing page. * Add a configuration in the integration definitions to show an alert if all their dependencies can't be installed. * Refactor the Integration Overview tab to show an integration specific alert if all its dependencies can't be met because of outdated image. * Fix smol misspell. * Update copy. * Fix copy.
29 lines
915 B
TypeScript
29 lines
915 B
TypeScript
import Link from 'next/link'
|
|
|
|
import { useSelectedProject } from 'hooks/misc/useSelectedProject'
|
|
import { Button } from 'ui'
|
|
import { Admonition } from 'ui-patterns/admonition'
|
|
|
|
export const UpgradeDatabaseAlert = () => {
|
|
const project = useSelectedProject()
|
|
|
|
return (
|
|
<Admonition
|
|
type="warning"
|
|
className="mt-4"
|
|
title="Database Upgrade Needed"
|
|
childProps={{ description: { className: 'flex flex-col gap-y-2' } }}
|
|
>
|
|
<div className="prose text-sm max-w-full">
|
|
<p>
|
|
This integration requires the <code>pgmq</code> extension which is not available on this
|
|
version of Postgres. The extension is available on version 15.6.1.143 and higher.
|
|
</p>
|
|
</div>
|
|
<Button color="primary" className="w-fit">
|
|
<Link href={`/project/${project?.ref}/settings/infrastructure`}>Upgrade database</Link>
|
|
</Button>
|
|
</Admonition>
|
|
)
|
|
}
|