|
1 | | -import { AnalyticalTable, AnalyticalTableColumnDefinition } from '@ui5/webcomponents-react'; |
| 1 | +import { AnalyticalTable, AnalyticalTableColumnDefinition, Button, Link } from '@ui5/webcomponents-react'; |
2 | 2 | import { ThemingParameters } from '@ui5/webcomponents-react-base'; |
3 | 3 | import { CopyButton } from '../Shared/CopyButton.tsx'; |
4 | 4 | import useLuigiNavigate from '../Shared/useLuigiNavigate.tsx'; |
@@ -35,24 +35,30 @@ export default function ProjectsList() { |
35 | 35 | accessor: 'projectName', |
36 | 36 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
37 | 37 | Cell: (instance: any) => ( |
38 | | - <div |
| 38 | + <Link |
| 39 | + // design={'Transparent'} |
39 | 40 | style={{ |
40 | | - cursor: 'pointer', |
| 41 | + // cursor: 'pointer', |
41 | 42 | width: '100%', |
42 | | - color: ThemingParameters.sapLinkColor, |
43 | | - fontWeight: 'bold', |
44 | | - display: 'flex', |
45 | | - justifyContent: 'start', |
46 | | - alignItems: 'center', |
| 43 | + textAlign: 'left', |
| 44 | + // color: ThemingParameters.sapLinkColor, |
| 45 | + // fontWeight: 'bold', |
| 46 | + // display: 'flex', |
| 47 | + // justifyContent: 'flex-start', |
| 48 | + // alignItems: 'center', |
| 49 | + }} |
| 50 | + onClick={() => { |
| 51 | + navigate(`/mcp/projects/${instance.cell.row.original?.projectName}`); |
47 | 52 | }} |
48 | 53 | > |
49 | 54 | {instance.cell.value} |
50 | | - </div> |
| 55 | + </Link> |
51 | 56 | ), |
52 | 57 | }, |
53 | 58 | { |
54 | 59 | Header: 'Namespace', |
55 | 60 | accessor: 'nameSpace', |
| 61 | + |
56 | 62 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
57 | 63 | Cell: (instance: any) => ( |
58 | 64 | <div |
@@ -121,15 +127,7 @@ export default function ProjectsList() { |
121 | 127 |
|
122 | 128 | return ( |
123 | 129 | <> |
124 | | - <AnalyticalTable |
125 | | - style={{ margin: '12px' }} |
126 | | - columns={stabilizedColumns} |
127 | | - data={stabilizedData} |
128 | | - // eslint-disable-next-line @typescript-eslint/no-explicit-any |
129 | | - onRowClick={(e: any) => { |
130 | | - // navigate(`/mcp/projects/${data ? [e.detail.row.values.projectName] : ''}`); |
131 | | - }} |
132 | | - /> |
| 130 | + <AnalyticalTable style={{ margin: '12px' }} columns={stabilizedColumns} data={stabilizedData} /> |
133 | 131 | </> |
134 | 132 | ); |
135 | 133 | } |
0 commit comments