From 465adfd879dfeb7a3ba72684d21f8677c6be2e18 Mon Sep 17 00:00:00 2001 From: Wanpan Date: Sat, 24 May 2025 02:09:35 +0800 Subject: [PATCH] chore: upgrade react19 --- package.json | 8 ++++---- src/global.less | 6 +++--- src/pages/TableList/index.tsx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 88424cc5..d3431b46 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,8 @@ "classnames": "^2.5.1", "dayjs": "^1.11.13", "querystring": "^0.2.1", - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.1.0", + "react-dom": "^19.1.0" }, "devDependencies": { "@ant-design/pro-cli": "^3.3.0", @@ -60,8 +60,8 @@ "@types/history": "^5.0.0", "@types/jest": "^29.5.13", "@types/lodash": "^4.17.10", - "@types/react": "^18.3.11", - "@types/react-dom": "^18.3.0", + "@types/react": "^19.1.5", + "@types/react-dom": "^19.1.5", "@types/react-helmet": "^6.1.11", "@umijs/lint": "^4.3.24", "@umijs/max": "^4.3.24", diff --git a/src/global.less b/src/global.less index a9a0c51b..1b5ae780 100644 --- a/src/global.less +++ b/src/global.less @@ -4,9 +4,9 @@ body, height: 100%; margin: 0; padding: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, - 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', - 'Noto Color Emoji'; + font-family: + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', + sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; } .colorWeak { diff --git a/src/pages/TableList/index.tsx b/src/pages/TableList/index.tsx index 14f526ac..3fe5fea4 100644 --- a/src/pages/TableList/index.tsx +++ b/src/pages/TableList/index.tsx @@ -97,7 +97,7 @@ const TableList: React.FC = () => { const [showDetail, setShowDetail] = useState(false); - const actionRef = useRef(); + const actionRef = useRef(null); const [currentRow, setCurrentRow] = useState(); const [selectedRowsState, setSelectedRows] = useState([]);