chore: migrates from SanitizedConfig to ClientConfig types where necessary
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
import type { LivePreviewConfig } from 'payload/config'
|
||||
import type { Field } from 'payload/types'
|
||||
import type { ClientConfigField, Field } from 'payload/types'
|
||||
|
||||
import { DndContext } from '@dnd-kit/core'
|
||||
import { fieldSchemaToJSON } from 'payload/utilities'
|
||||
@@ -20,7 +20,7 @@ export type LivePreviewProviderProps = {
|
||||
height: number
|
||||
width: number
|
||||
}
|
||||
fieldSchema: Field[]
|
||||
fieldSchema: ClientConfigField[]
|
||||
isPopupOpen?: boolean
|
||||
openPopupWindow?: ReturnType<typeof usePopupWindow>['openPopupWindow']
|
||||
popupRef?: React.MutableRefObject<Window>
|
||||
|
||||
Reference in New Issue
Block a user