diff --git a/packages/core/client/src/user/CurrentUser.tsx b/packages/core/client/src/user/CurrentUser.tsx index 6a640085d..fe6213f83 100644 --- a/packages/core/client/src/user/CurrentUser.tsx +++ b/packages/core/client/src/user/CurrentUser.tsx @@ -185,7 +185,7 @@ const useStyles = createStyles(({ css, token }) => { white-space: nowrap; text-overflow: ellipsis; cursor: pointer; - padding: '16px'; + padding: 16px; color: ${token.colorTextHeaderMenu}; `, }; diff --git a/packages/plugins/@hera/plugin-approval-mobile/package.json b/packages/plugins/@hera/plugin-approval-mobile/package.json index 3490376db..919dadd51 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/package.json +++ b/packages/plugins/@hera/plugin-approval-mobile/package.json @@ -10,7 +10,6 @@ "antd": "5.16.1", "antd-mobile": "^5.35.0", "antd-mobile-icons": "^0.3.0", - "classnames": "^2.3.1", "lodash": "4.17.21", "react-i18next": "^11.15.1", "react-router-dom": "6.x" diff --git a/packages/plugins/@hera/plugin-core/src/client/components/context-menu/animateComponent.jsx b/packages/plugins/@hera/plugin-core/src/client/components/context-menu/animateComponent.jsx index d716802a5..451f62b4b 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/context-menu/animateComponent.jsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/context-menu/animateComponent.jsx @@ -1,4 +1,5 @@ import React from 'react'; + import CSSTransition from 'react-transition-group/CSSTransition'; const AnimateComponent = ({ children, isVisible, timeout, className }) => { diff --git a/packages/plugins/@hera/plugin-core/src/client/components/context-menu/contextMenu.jsx b/packages/plugins/@hera/plugin-core/src/client/components/context-menu/contextMenu.jsx index 06b313c1d..9a1e9235f 100644 --- a/packages/plugins/@hera/plugin-core/src/client/components/context-menu/contextMenu.jsx +++ b/packages/plugins/@hera/plugin-core/src/client/components/context-menu/contextMenu.jsx @@ -1,9 +1,11 @@ -import React, { useRef, useEffect, useState, useCallback } from 'react'; +import React, { useCallback, useEffect, useRef, useState } from 'react'; + +import cx from 'classnames'; import ReactDOM from 'react-dom'; -import classnames from 'classnames'; -import { registerEvent, callHideEvent } from './registerEvent'; + import AnimateComponent from './animateComponent'; import { throttle } from './helper'; +import { callHideEvent, registerEvent } from './registerEvent'; function ContextMenu({ children, @@ -120,7 +122,7 @@ function ContextMenu({ const ContextComponent = () => (