mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
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>
34 lines
1.0 KiB
TypeScript
34 lines
1.0 KiB
TypeScript
import { UseFormReturn } from 'react-hook-form'
|
|
import { FormField, SheetSection } from 'ui'
|
|
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
|
|
|
|
import { CreateCronJobForm } from './CreateCronJobSheet/CreateCronJobSheet.constants'
|
|
import CodeEditor from '@/components/ui/CodeEditor/CodeEditor'
|
|
|
|
interface SqlSnippetSectionProps {
|
|
form: UseFormReturn<CreateCronJobForm>
|
|
}
|
|
|
|
export const SqlSnippetSection = ({ form }: SqlSnippetSectionProps) => {
|
|
return (
|
|
<SheetSection className="px-0! pb-0!">
|
|
<FormField
|
|
control={form.control}
|
|
name="values.snippet"
|
|
render={({ field }) => (
|
|
<FormItemLayout label="SQL Snippet" className="[&>div>label]:px-content">
|
|
<CodeEditor
|
|
id="create-cron-job-editor"
|
|
language="pgsql"
|
|
className="h-72"
|
|
autofocus={false}
|
|
value={field.value}
|
|
onInputChange={field.onChange}
|
|
/>
|
|
</FormItemLayout>
|
|
)}
|
|
/>
|
|
</SheetSection>
|
|
)
|
|
}
|