mirror of
https://github.com/supabase/supabase.git
synced 2026-05-11 03:10:16 -04:00
56de26fe22
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import { useParams } from 'common'
|
|
import { AlertCircleIcon } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button } from 'ui'
|
|
|
|
import { useAppStateSnapshot } from '@/state/app-state'
|
|
|
|
export const BranchingPostgresVersionNotice = () => {
|
|
const { ref } = useParams()
|
|
const snap = useAppStateSnapshot()
|
|
|
|
return (
|
|
<Alert_Shadcn_ className="rounded-none px-7 py-6 [&>svg]:top-6 [&>svg]:left-6 border-t-0! border-l-0! border-r-0!">
|
|
<AlertCircleIcon />
|
|
<AlertTitle_Shadcn_ className="text-base">
|
|
Your project needs to be on Postgres 15 to enable branching
|
|
</AlertTitle_Shadcn_>
|
|
<AlertDescription_Shadcn_>
|
|
Head over to your project's infrastructure settings to upgrade to the latest version of
|
|
Postgres before enabling branching.
|
|
</AlertDescription_Shadcn_>
|
|
<AlertDescription_Shadcn_>
|
|
<Button size="tiny" type="default" className="mt-4">
|
|
<Link
|
|
href={`/project/${ref}/settings/infrastructure`}
|
|
onClick={() => snap.setShowCreateBranchModal(false)}
|
|
>
|
|
Head to project settings
|
|
</Link>
|
|
</Button>
|
|
</AlertDescription_Shadcn_>
|
|
</Alert_Shadcn_>
|
|
)
|
|
}
|