Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Oct 25, 2023
1 parent 41e797c commit 77d4d03
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 25 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@rspack/cli": "^0.3.8",
"@types/object-hash": "^3.0.5",
"@types/react": "^18.2.31",
"@types/react": "^18.2.32",
"@types/react-dom": "^18.2.14",
"@types/recharts": "1.8.26",
"@typescript-eslint/eslint-plugin": "^6.9.0",
Expand All @@ -36,7 +36,7 @@
"object-hash": "^3.0.0",
"postcss-loader": "^7.3.3",
"prettier": "^3.0.3",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2"
},
"scripts": {
Expand Down
37 changes: 16 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ export const renderTableCell = (data: TableCellTypes, definition: TableColumn |
case 'paragraph':
return <LongTextCell text={String(data)} />;
default: {
const formatType = translateType(definition?.dataType);
return formatType ? formatter(String(data), formatType, definition?.formatterOptions) : String(data);
return formatter(String(data), translateType(definition?.dataType), definition?.formatterOptions);
}
}
};
Expand Down

0 comments on commit 77d4d03

Please sign in to comment.