Merge branch 'main' into improve-table-api
This commit is contained in:
Коммит
9d75e01246
|
@ -0,0 +1,3 @@
|
|||
releases:
|
||||
"@datashaper/react": patch
|
||||
"@datashaper/webapp": patch
|
|
@ -3,6 +3,7 @@
|
|||
* Licensed under the MIT license. See LICENSE file in the project.
|
||||
*/
|
||||
import { DataType } from '@datashaper/schema'
|
||||
import { determineType } from '@datashaper/tables'
|
||||
import { memo, useCallback, useMemo } from 'react'
|
||||
import { Case, Default, Switch } from 'react-if'
|
||||
|
||||
|
@ -28,7 +29,7 @@ export const DefaultCell: React.FC<RichCellProps> = memo(function DefaultCell(
|
|||
) {
|
||||
const { field, item, column, onColumnClick } = props
|
||||
const value = getValue(item, column)
|
||||
const type = field?.type
|
||||
const type = field?.type || determineType(value)
|
||||
|
||||
const handleColumnClick = useCallback(
|
||||
(ev: React.MouseEvent<HTMLElement>) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче