11import React from "react" ;
22
3- import { ValidIconName } from "../../components/Icon/canonicalIconNames" ;
4- import { IconProps } from "../../components/Icon/Icon" ;
5- import { TestIconProps } from "../../components/Icon/TestIcon" ;
6- import { TestableComponent } from "../../components/interfaces" ;
7- import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar" ;
8- import { SpinnerProps } from "../../components/Spinner/Spinner" ;
9- import { CLASSPREFIX as eccgui } from "../../configuration/constants" ;
103import {
114 Card ,
125 ContextMenu ,
@@ -21,7 +14,14 @@ import {
2114 ProgressBar ,
2215 Spinner ,
2316 Tooltip ,
24- } from "../../index" ;
17+ } from "../../components" ;
18+ import { ValidIconName } from "../../components/Icon/canonicalIconNames" ;
19+ import { IconProps } from "../../components/Icon/Icon" ;
20+ import { TestIconProps } from "../../components/Icon/TestIcon" ;
21+ import { TestableComponent } from "../../components/interfaces" ;
22+ import { ProgressBarProps } from "../../components/ProgressBar/ProgressBar" ;
23+ import { SpinnerProps } from "../../components/Spinner/Spinner" ;
24+ import { CLASSPREFIX as eccgui } from "../../configuration/constants" ;
2525
2626export interface ActivityControlWidgetProps extends TestableComponent {
2727 /**
@@ -212,11 +212,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
212212 activityActions . map ( ( action , idx ) => {
213213 return (
214214 < IconButton
215- key = {
216- typeof action . icon === "string"
217- ? action . icon
218- : action [ "data-test-id" ] ?? action [ "data-testid" ] ?? idx
219- }
215+ key = { idx }
220216 data-test-id = { action [ "data-test-id" ] }
221217 data-testid = { action [ "data-testid" ] }
222218 name = { action . icon }
@@ -241,11 +237,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
241237 return (
242238 < MenuItem
243239 icon = { menuAction . icon }
244- key = {
245- typeof menuAction . icon === "string"
246- ? menuAction . icon
247- : menuAction [ "data-test-id" ] ?? idx
248- }
240+ key = { idx }
249241 onClick = { menuAction . action }
250242 text = { menuAction . tooltip }
251243 />
0 commit comments