Skip to content

Commit 721ce2a

Browse files
committed
fixes
1 parent 0f2aef7 commit 721ce2a

File tree

3 files changed

+9
-44
lines changed

3 files changed

+9
-44
lines changed

src/components/ComponentsSelection/ComponentsSelection.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,7 @@ import {
2020
import styles from './ComponentsSelection.module.css';
2121
import { Infobox } from '../Ui/Infobox/Infobox.tsx';
2222
import { useTranslation } from 'react-i18next';
23-
24-
export interface ComponentSelectionItem {
25-
name: string;
26-
versions: string[];
27-
isSelected: boolean;
28-
selectedVersion: string;
29-
documentationUrl: string;
30-
}
23+
import { ComponentSelectionItem } from '../../lib/api/types/crate/createManagedControlPlane.ts';
3124

3225
export interface ComponentsSelectionProps {
3326
components: ComponentSelectionItem[];

src/lib/api/types/crate/createControlPlane.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/lib/api/types/crate/createManagedControlPlane.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ import {
44
DISPLAY_NAME_ANNOTATION,
55
} from '../shared/keyNames';
66
import { Member } from '../shared/members';
7-
import { ComponentSelectionItem } from '../../../../components/ComponentsSelection/ComponentsSelection.tsx';
87

98
export type Annotations = Record<string, string>;
109
export type Labels = Record<string, string>;
1110

11+
export interface ComponentSelectionItem {
12+
name: string;
13+
versions: string[];
14+
isSelected: boolean;
15+
selectedVersion: string;
16+
documentationUrl: string;
17+
}
18+
1219
interface RoleBinding {
1320
role: string;
1421
subjects: Subject[];

0 commit comments

Comments
 (0)