diff --git a/packages/manager-react-components/package.json b/packages/manager-react-components/package.json index 518ce5769f99..8ecf86effdc4 100644 --- a/packages/manager-react-components/package.json +++ b/packages/manager-react-components/package.json @@ -28,8 +28,8 @@ "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@ovh-ux/manager-core-api": "^0.8.0", "@ovh-ux/manager-react-shell-client": "^0.7.2", - "@ovhcloud/ods-components": "18.0.0", - "@ovhcloud/ods-themes": "18.0.0", + "@ovhcloud/ods-components": "18.1.0", + "@ovhcloud/ods-themes": "18.1.0", "@tanstack/react-query": "^5.51.21", "@tanstack/react-table": "^8.20.1", "@types/lodash.isdate": "^4.0.9", diff --git a/packages/manager-react-components/src/components/content/headers/headers.stories.tsx b/packages/manager-react-components/src/components/content/headers/headers.stories.tsx index 138d77884259..f246832d6acb 100644 --- a/packages/manager-react-components/src/components/content/headers/headers.stories.tsx +++ b/packages/manager-react-components/src/components/content/headers/headers.stories.tsx @@ -46,7 +46,7 @@ const guideItems = [ const HeadingWithActionButton: HeadersProps = { title: 'Example for header with actions ', description: 'description for header', - headerButton: , + headerButton: , }; const HeadingWithGuideButton: HeadersProps = { title: 'Example for header with guides', diff --git a/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx b/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx index 4635bd86b908..e216ab9ddb2a 100644 --- a/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx +++ b/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx @@ -14,12 +14,11 @@ export interface ActionMenuItem { id: number; rel?: string; download?: string; - href?: string; target?: string; onClick?: () => void; label: string; variant?: ODS_BUTTON_VARIANT; - disabled?: boolean; + isDisabled?: boolean; iamActions?: string[]; urn?: string; } @@ -29,7 +28,8 @@ export interface ActionMenuProps { isCompact?: boolean; icon?: ODS_ICON_NAME; variant?: ODS_BUTTON_VARIANT; - disabled?: boolean; + isDisabled?: boolean; + id: string; } const MenuItem = ({ @@ -52,7 +52,7 @@ const MenuItem = ({ {!item?.iamActions || item?.iamActions?.length === 0 ? ( @@ -66,7 +66,7 @@ const MenuItem = ({ iamActions={item.iamActions} urn={item.urn} {...buttonProps} - isDisabled={buttonProps.disabled || undefined} + isDisabled={buttonProps.isDisabled || undefined} > {item.label} @@ -82,19 +82,21 @@ export const ActionMenu: React.FC = ({ isCompact, icon, variant = ODS_BUTTON_VARIANT.outline, - disabled, + isDisabled, + id, }) => { const { t } = useTranslation('buttons'); const [isTrigger, setIsTrigger] = React.useState(false); return ( <> -