mirror of
https://github.com/supabase/supabase.git
synced 2026-07-01 02:24:32 +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:
@@ -1,9 +1,10 @@
|
||||
import { SimpleCodeBlock } from 'ui'
|
||||
import { useParams } from 'common'
|
||||
import { DocsButton } from 'components/ui/DocsButton'
|
||||
import { SimpleCodeBlock } from 'ui-patterns/SimpleCodeBlock'
|
||||
|
||||
import { Markdown } from '../Markdown'
|
||||
import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
|
||||
import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization'
|
||||
import { DocsButton } from '@/components/ui/DocsButton'
|
||||
import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'
|
||||
import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'
|
||||
|
||||
interface ResourceContentProps {
|
||||
selectedLanguage: 'js' | 'bash'
|
||||
|
||||
Reference in New Issue
Block a user