### What Continuation of #7355 by extending the functionality to named tabs. Updates `flattenFields` to hoist nested fields inside named tabs to the top-level field array when `moveSubFieldsToTop` is enabled. Also fixes an issue where group fields with custom cells were being flattened out. Now, group fields with a custom cell components remain available as top-level columns. Fixes #12563
10 lines
263 B
TypeScript
10 lines
263 B
TypeScript
'use client'
|
|
|
|
import type { DefaultCellComponentProps } from 'payload'
|
|
|
|
import React from 'react'
|
|
|
|
export const CustomGroupCell: React.FC<DefaultCellComponentProps> = (props) => {
|
|
return <div>{`Custom group cell: ${props?.rowData?.title || 'No data'}`}</div>
|
|
}
|