From dae1c3ef27b14d9febada96200f2614ab0f128d3 Mon Sep 17 00:00:00 2001 From: jiaxiang Date: Mon, 2 Feb 2026 14:59:40 +0800 Subject: [PATCH] chore(deps): update dependencies in package.json and refactor HeaderDropdown component (#11622) --- package.json | 20 ++++++++++---------- src/components/HeaderDropdown/index.tsx | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index ecf1f8b5..ff2d830c 100644 --- a/package.json +++ b/package.json @@ -36,13 +36,13 @@ ], "dependencies": { "@ant-design/icons": "^6.1.0", - "@ant-design/pro-components": "3.1.0-0", - "antd": "^6.2.0", + "@ant-design/pro-components": "3.1.2-0", + "antd": "^6.2.2", "antd-style": "^4.1.0", - "classnames": "^2.5.1", - "dayjs": "^1.11.13", - "react": "^19.1.0", - "react-dom": "^19.1.0" + "clsx": "^2.1.1", + "dayjs": "^1.11.19", + "react": "^19.2.4", + "react-dom": "^19.2.4" }, "devDependencies": { "@ant-design/pro-cli": "^3.3.0", @@ -52,12 +52,12 @@ "@testing-library/react": "^16.3.0", "@types/express": "^5.0.3", "@types/jest": "^30.0.0", - "@types/react": "^19.1.8", - "@types/react-dom": "^19.1.6", + "@types/react": "^19.2.10", + "@types/react-dom": "^19.2.3", "@types/react-helmet": "^6.1.11", "@umijs/lint": "^4.6.13", - "@umijs/max": "^4.6.13", - "cross-env": "^10.0.0", + "@umijs/max": "^4.6.25", + "cross-env": "^10.1.0", "express": "^5.2.0", "gh-pages": "^6.1.1", "husky": "^9.1.7", diff --git a/src/components/HeaderDropdown/index.tsx b/src/components/HeaderDropdown/index.tsx index e36334f2..3a23617e 100644 --- a/src/components/HeaderDropdown/index.tsx +++ b/src/components/HeaderDropdown/index.tsx @@ -1,7 +1,7 @@ import { Dropdown } from 'antd'; import type { DropDownProps } from 'antd/es/dropdown'; import { createStyles } from 'antd-style'; -import classNames from 'classnames'; +import { clsx } from 'clsx'; import React from 'react'; const useStyles = createStyles(({ token }) => { @@ -33,7 +33,7 @@ const HeaderDropdown: React.FC = ({ return (