chore: splits client config into separate files (#5367)

This commit is contained in:
Jacob Fletcher
2024-03-19 11:38:33 -04:00
committed by GitHub
parent ed01ee1e2d
commit 001f386244
12 changed files with 371 additions and 353 deletions

View File

@@ -1,6 +1,6 @@
'use client'
import type { LivePreviewConfig } from 'payload/config'
import type { ClientConfigField, Field } from 'payload/types'
import type { ClientFieldConfig, 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: ClientConfigField[]
fieldSchema: ClientFieldConfig[]
isPopupOpen?: boolean
openPopupWindow?: ReturnType<typeof usePopupWindow>['openPopupWindow']
popupRef?: React.MutableRefObject<Window>