mirror of
https://github.com/supabase/supabase.git
synced 2026-06-20 16:26:02 +08:00
chore: Clean the ui package from next imports (#44278)
This PR moves several components which rely on `next` out of the `ui` package to the `ui-patterns` package. `ui-patterns` package is intented to be imported with specific imports so it's ok if there are components reliant on `next` in there. The `SonnerToaster` component has removed its dependency by requiring a prop for `theme`.
This commit is contained in:
@@ -23,7 +23,6 @@ import {
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
CodeBlock,
|
||||
Form_Shadcn_,
|
||||
FormControl_Shadcn_,
|
||||
FormField_Shadcn_,
|
||||
@@ -48,6 +47,7 @@ import {
|
||||
TabsTrigger_Shadcn_ as TabsTrigger,
|
||||
TextArea_Shadcn_ as Textarea,
|
||||
} from 'ui'
|
||||
import { CodeBlock } from 'ui-patterns/CodeBlock'
|
||||
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
|
||||
import * as z from 'zod'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user