test: updates text field config imports to relative imports
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
'use client'
|
||||
|
||||
import { useField, useFormFields, useFormSubmitted } from '@payloadcms/ui'
|
||||
import React from 'react'
|
||||
|
||||
import { useFormFields, useFormSubmitted } from '../../../../packages/ui/src/forms/Form/context.js'
|
||||
import { useField } from '../../../../packages/ui/src/forms/useField/index.js'
|
||||
|
||||
const CustomError: React.FC<any> = (props) => {
|
||||
const { path: pathFromProps } = props
|
||||
const submitted = useFormSubmitted()
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
'use client'
|
||||
|
||||
import { useFieldPath } from '@payloadcms/ui'
|
||||
import React from 'react'
|
||||
|
||||
import { useFieldProps } from '../../../../packages/ui/src/forms/FieldPropsProvider/index.js'
|
||||
|
||||
const CustomLabel = () => {
|
||||
const { path } = useFieldPath()
|
||||
const { path } = useFieldProps()
|
||||
return (
|
||||
<label className="custom-label" htmlFor={`field-${path.replace(/\./g, '__')}`}>
|
||||
#label
|
||||
|
||||
Reference in New Issue
Block a user