Skip to content

Commit 5c68a47

Browse files
committed
fix
1 parent 8b746f8 commit 5c68a47

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

public/yaml-icon.svg

Lines changed: 2 additions & 2 deletions
Loading

src/components/ControlPlane/FluxList.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ export default function FluxList() {
7878
accessor: 'created',
7979
},
8080
{
81-
Header: '',
82-
accessor: 'item',
83-
hAlign: 'End',
81+
Header: 'YAML',
82+
hAlign: 'Center',
83+
width: 85,
84+
accessor: 'yaml',
8485
Cell: (cellData: CellData<KustomizationsResponse['items']>) => (
8586
<YamlViewButton resourceObject={cellData.cell.row.original?.item} />
8687
),

src/components/ControlPlane/Providers.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ export function Providers() {
8787
accessor: 'created',
8888
},
8989
{
90-
Header: '',
91-
hAlign: 'End',
92-
accessor: 'item',
90+
Header: 'YAML',
91+
hAlign: 'Center',
92+
width: 85,
93+
accessor: 'yaml',
9394
Cell: (cellData: CellData<ProvidersRow>) => (
9495
<YamlViewButton resourceObject={cellData.cell.row.original?.item} />
9596
),

src/components/ControlPlane/ProvidersConfig.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ export function ProvidersConfig() {
7272
accessor: 'created',
7373
},
7474
{
75-
Header: '',
76-
accessor: 'resource',
77-
hAlign: 'End',
75+
Header: 'YAML',
76+
hAlign: 'Center',
77+
width: 85,
78+
accessor: 'yaml',
7879
Cell: (cellData: CellData<Rows>) =>
7980
cellData.cell.row.original?.resource ? (
8081
<YamlViewButton

src/components/Projects/ProjectsList.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { AnalyticalTable } from '@ui5/webcomponents-react';
1+
import {
2+
AnalyticalTable,
3+
AnalyticalTableColumnDefinition,
4+
} from '@ui5/webcomponents-react';
25
import { ThemingParameters } from '@ui5/webcomponents-react-base';
36
import { CopyButton } from '../Shared/CopyButton.tsx';
47
import useLuigiNavigate from '../Shared/useLuigiNavigate.tsx';
@@ -28,7 +31,7 @@ export default function ProjectsList() {
2831
}) ?? [],
2932
[data],
3033
);
31-
const stabilizedColumns = useMemo(
34+
const stabilizedColumns: AnalyticalTableColumnDefinition[] = useMemo(
3235
() => [
3336
{
3437
Header: t('ProjectsListView.title'),
@@ -73,6 +76,7 @@ export default function ProjectsList() {
7376
Header: 'YAML',
7477
accessor: 'yaml',
7578
width: 85,
79+
hAlign: 'Center',
7680
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7781
Cell: (instance: any) => (
7882
<div

0 commit comments

Comments
 (0)