chore: migrates from SanitizedConfig to ClientConfig types where necessary

This commit is contained in:
Jacob Fletcher
2024-03-19 09:57:12 -04:00
parent 7e96560fbb
commit 772d5e10b8
26 changed files with 89 additions and 89 deletions

View File

@@ -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>