@@ -11,7 +11,7 @@ import {
1111import { AnalyticalTableColumnDefinition } from '@ui5/webcomponents-react/wrappers' ;
1212import PopoverPlacement from '@ui5/webcomponents/dist/types/PopoverPlacement.js' ;
1313import '@ui5/webcomponents-icons/dist/copy' ;
14- import { JSX , useRef , useState , ReactNode } from 'react' ;
14+ import { JSX , useRef , useState } from 'react' ;
1515import type { ButtonClickEventDetail } from '@ui5/webcomponents/dist/Button.js' ;
1616import {
1717 ControlPlaneStatusType ,
@@ -25,17 +25,6 @@ import { useLink } from '../../lib/shared/useLink.ts';
2525import TooltipCell from '../Shared/TooltipCell.tsx' ;
2626import type { Ui5CustomEvent } from '@ui5/webcomponents-react-base' ;
2727
28- interface CellData < T > {
29- cell : {
30- value : ReactNode ;
31- } ;
32- row : {
33- original : T ;
34- [ key : string ] : unknown ;
35- } ;
36- [ key : string ] : unknown ;
37- }
38-
3928type MCPHealthPopoverButtonProps = {
4029 mcpStatus : ControlPlaneStatusType | undefined ;
4130 projectName : string ;
@@ -99,7 +88,7 @@ const MCPHealthPopoverButton = ({ mcpStatus, projectName, workspaceName, mcpName
9988 Header : t ( 'MCPHealthPopoverButton.statusHeader' ) ,
10089 accessor : 'status' ,
10190 width : 50 ,
102- Cell : ( instance : CellData < ControlPlaneStatusCondition > ) => {
91+ Cell : ( instance ) => {
10392 const isReady = instance . cell . value === 'True' ;
10493 return (
10594 < Icon
@@ -113,31 +102,31 @@ const MCPHealthPopoverButton = ({ mcpStatus, projectName, workspaceName, mcpName
113102 Header : t ( 'MCPHealthPopoverButton.typeHeader' ) ,
114103 accessor : 'type' ,
115104 width : 150 ,
116- Cell : ( instance : CellData < ControlPlaneStatusCondition > ) => {
105+ Cell : ( instance ) => {
117106 return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
118107 } ,
119108 } ,
120109 {
121110 Header : t ( 'MCPHealthPopoverButton.messageHeader' ) ,
122111 accessor : 'message' ,
123112 width : 350 ,
124- Cell : ( instance : CellData < ControlPlaneStatusCondition > ) => {
113+ Cell : ( instance ) => {
125114 return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
126115 } ,
127116 } ,
128117 {
129118 Header : t ( 'MCPHealthPopoverButton.reasonHeader' ) ,
130119 accessor : 'reason' ,
131120 width : 100 ,
132- Cell : ( instance : CellData < ControlPlaneStatusCondition > ) => {
121+ Cell : ( instance ) => {
133122 return < TooltipCell > { instance . cell . value } </ TooltipCell > ;
134123 } ,
135124 } ,
136125 {
137126 Header : t ( 'MCPHealthPopoverButton.transitionHeader' ) ,
138127 accessor : 'lastTransitionTime' ,
139128 width : 125 ,
140- Cell : ( instance : CellData < ControlPlaneStatusCondition > ) => {
129+ Cell : ( instance ) => {
141130 const rawDate = instance . cell . value ;
142131 const date = new Date ( rawDate as string ) ;
143132 return (
0 commit comments