chore: properly types cell components (#5474)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
'use client'
|
||||
import type { CellComponentProps } from 'payload/types'
|
||||
import type { DefaultCellComponentProps } from 'payload/types'
|
||||
|
||||
import React from 'react'
|
||||
|
||||
export const RichTextCell: React.FC<CellComponentProps<any[]>> = ({ cellData }) => {
|
||||
export const RichTextCell: React.FC<DefaultCellComponentProps<any[]>> = ({ cellData }) => {
|
||||
const flattenedText = cellData?.map((i) => i?.children?.map((c) => c.text)).join(' ')
|
||||
|
||||
// Limiting the number of characters shown is done in a CSS rule
|
||||
|
||||
Reference in New Issue
Block a user