chore: replace Lodash usage with native JS implementation (#31907)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải
2025-01-22 01:33:31 +07:00
committed by GitHub
parent eec374426f
commit f8fe780f52
17 changed files with 45 additions and 54 deletions

View File

@@ -61,7 +61,7 @@ import {
PlusCircleOutlined,
TableOutlined,
} from '@ant-design/icons';
import { isEmpty, isNumber } from 'lodash';
import { isEmpty } from 'lodash';
import {
ColorSchemeEnum,
DataColumnMeta,
@@ -899,7 +899,9 @@ export default function TableChart<D extends DataRecord = DataRecord>(
/* The following classes are added to support custom CSS styling */
className={cx(
'cell-bar',
isNumber(value) && value < 0 ? 'negative' : 'positive',
typeof value === 'number' && value < 0
? 'negative'
: 'positive',
)}
css={cellBarStyles}
role="presentation"