Browse Source

chore(deps): update dependencies in package.json and refactor HeaderDropdown component (#11622)

master
jiaxiang 2 months ago
committed by GitHub
parent
commit
dae1c3ef27
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 20
      package.json
  2. 4
      src/components/HeaderDropdown/index.tsx

20
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",

4
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<HeaderDropdownProps> = ({
return (
<Dropdown
classNames={{
root: classNames(styles.dropdown, cls),
root: clsx(styles.dropdown, cls),
}}
{...restProps}
/>

Loading…
Cancel
Save