-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b64266
commit 690108d
Showing
9 changed files
with
97 additions
and
34 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
test/admin/collections/CustomFields/fields/Text/Description.tsx
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
test/admin/collections/CustomFields/fields/Text/DescriptionClient.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use client' | ||
import type { TextFieldDescriptionClientComponent } from 'payload' | ||
|
||
import React from 'react' | ||
|
||
export const CustomClientDescription: TextFieldDescriptionClientComponent = (props) => { | ||
return ( | ||
<div id="custom-client-field-description">{`Description: the max length of this field is: ${props?.field?.maxLength}`}</div> | ||
) | ||
} |
9 changes: 9 additions & 0 deletions
9
test/admin/collections/CustomFields/fields/Text/DescriptionServer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { TextFieldDescriptionServerComponent } from 'payload' | ||
|
||
import React from 'react' | ||
|
||
export const CustomServerDescription: TextFieldDescriptionServerComponent = (props) => { | ||
return ( | ||
<div id="custom-server-field-description">{`Description: the max length of this field is: ${props?.field?.maxLength}`}</div> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
test/admin/collections/CustomFields/fields/Text/LabelClient.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use client' | ||
import type { TextFieldLabelClientComponent } from 'payload' | ||
|
||
import React from 'react' | ||
|
||
export const CustomClientLabel: TextFieldLabelClientComponent = (props) => { | ||
return ( | ||
<div id="custom-client-field-label">{`Label: the max length of this field is: ${props?.field?.maxLength}`}</div> | ||
) | ||
} |
9 changes: 9 additions & 0 deletions
9
test/admin/collections/CustomFields/fields/Text/LabelServer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { TextFieldLabelServerComponent } from 'payload' | ||
|
||
import React from 'react' | ||
|
||
export const CustomServerLabel: TextFieldLabelServerComponent = (props) => { | ||
return ( | ||
<div id="custom-server-field-label">{`Label: the max length of this field is: ${props?.field?.maxLength}`}</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters