Skip to content

Commit

Permalink
fix: update antd (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
xigongdaEricyang authored May 11, 2023
1 parent 3f37cad commit 4fb3203
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@antv/g2": "^4.1.29",
"@rematch/core": "^1.4.0",
"@rematch/loading": "^1.2.1",
"antd": "4.17.3",
"antd": "^4.24.10",
"axios": "^0.21.4",
"compare-versions": "^4.1.2",
"config": "^3.3.7",
Expand Down
2 changes: 0 additions & 2 deletions src/components/ModalWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ function ModalWrapper<T>(Component: React.FC<T>) {
const hide = () => {
setTimeout(() => {
ReactDOM.unmountComponentAtNode(container);
document.body.removeChild(container);
}, 200);
};

const show = (props: T) => {
document.body.appendChild(container);
ReactDOM.render(<Component visible {...props} hide={hide} />, container);
};

Expand Down

0 comments on commit 4fb3203

Please sign in to comment.