Skip to content

Commit

Permalink
Upgrade to REACT18 and ANTD4
Browse files Browse the repository at this point in the history
  • Loading branch information
AENeuro committed Sep 5, 2022
1 parent d3c08f3 commit f32750c
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 753 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"antd": "^3.15.0",
"antd": "^4.23.0",
"axios": "^0.18.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 4 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.ant-card {
border-radius: 10px;
/* border-radius: 10px; */
height: 50vh;

text-align: center;
Expand Down Expand Up @@ -75,6 +75,7 @@
0% {
transform: rotateZ(0);
}

100% {
transform: rotateZ(360deg);
}
Expand All @@ -84,7 +85,8 @@
from {
opacity: 0;
}

to {
opacity: 1;
}
}
}
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOM from 'react-dom/client';
import App from './App';


ReactDOM.render(<App />, document.getElementById('root'));
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<App />);


Loading

0 comments on commit f32750c

Please sign in to comment.