Skip to content

Commit

Permalink
fix: add lodash-es for @ant-design/web3 (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutingzhao1991 committed Jun 20, 2024
1 parent ac27f82 commit f1c388f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-horses-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ant-design/web3': patch
---

fix: add lodash-es for @ant-design/web3
6 changes: 4 additions & 2 deletions packages/web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"bs58": "^5.0.0",
"classnames": "^2.5.1",
"copy-to-clipboard": "^3.3.3",
"decimal.js": "^10.4.3"
"decimal.js": "^10.4.3",
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@ant-design/web3-bitcoin": "workspace:*",
Expand All @@ -63,7 +64,8 @@
"@types/react": "^18.2.78",
"@types/react-dom": "^18.2.25",
"father": "^4.4.4",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"@types/lodash-es": "^4.17.12"
},
"peerDependencies": {
"antd": ">=5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/web3/src/crypto-input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useDeferredValue } from 'react';
import type { Token } from '@ant-design/web3-common';
import { theme as antdTheme, Flex, InputNumber, Typography } from 'antd';
import Decimal from 'decimal.js';
import { isNull } from 'lodash';
import { isNull } from 'lodash-es';

import { CryptoPrice } from '../crypto-price';
import useIntl from '../hooks/useIntl';
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit f1c388f

Please sign in to comment.