({cell, state}: {cell: any; state: any})
| 189 | } |
| 190 | |
| 191 | export function TableCell({cell, state}: {cell: any; state: any}): JSX.Element { |
| 192 | let ref = useRef<HTMLTableCellElement | null>(null); |
| 193 | let {gridCellProps} = useTableCell({node: cell}, state, ref); |
| 194 | let {isFocusVisible, focusProps} = useFocusRing(); |
| 195 | |
| 196 | return ( |
| 197 | <td |
| 198 | {...mergeProps(gridCellProps, focusProps)} |
| 199 | style={{ |
| 200 | padding: '5px 10px', |
| 201 | outline: isFocusVisible ? '2px solid orange' : 'none', |
| 202 | cursor: 'default' |
| 203 | }} |
| 204 | ref={ref}> |
| 205 | {cell.rendered} |
| 206 | </td> |
| 207 | ); |
| 208 | } |
| 209 | |
| 210 | export function TableCheckboxCell({cell, state}: {cell: any; state: any}): JSX.Element { |
| 211 | let ref = useRef<HTMLTableCellElement | null>(null); |
nothing calls this directly
no test coverage detected