Skip to content

Commit 04e8a14

Browse files
committed
Update ProjectsList.tsx
1 parent e32727e commit 04e8a14

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

src/components/Projects/ProjectsList.tsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AnalyticalTable, AnalyticalTableColumnDefinition } from '@ui5/webcomponents-react';
1+
import { AnalyticalTable, AnalyticalTableColumnDefinition, Button, Link } from '@ui5/webcomponents-react';
22
import { ThemingParameters } from '@ui5/webcomponents-react-base';
33
import { CopyButton } from '../Shared/CopyButton.tsx';
44
import useLuigiNavigate from '../Shared/useLuigiNavigate.tsx';
@@ -35,24 +35,30 @@ export default function ProjectsList() {
3535
accessor: 'projectName',
3636
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3737
Cell: (instance: any) => (
38-
<div
38+
<Link
39+
// design={'Transparent'}
3940
style={{
40-
cursor: 'pointer',
41+
// cursor: 'pointer',
4142
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}`);
4752
}}
4853
>
4954
{instance.cell.value}
50-
</div>
55+
</Link>
5156
),
5257
},
5358
{
5459
Header: 'Namespace',
5560
accessor: 'nameSpace',
61+
5662
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5763
Cell: (instance: any) => (
5864
<div
@@ -121,15 +127,7 @@ export default function ProjectsList() {
121127

122128
return (
123129
<>
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} />
133131
</>
134132
);
135133
}

0 commit comments

Comments
 (0)