Skip to content

Commit 556d824

Browse files
committed
update ConnectedResourcesProps
1 parent a9b2483 commit 556d824

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/src/pages/projects/screens/detail/connections/ConnectedResources.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ import { useInferenceServicesForConnection } from '#~/pages/projects/useInferenc
1212
import { PersistentVolumeClaimKind } from '#~/k8sTypes';
1313
import { isModelStorage } from '#~/pages/projects/screens/detail/storage/utils';
1414
import { useIsAreaAvailable, SupportedArea } from '#~/concepts/areas/index';
15+
import { EitherNotBoth } from '#~/typeHelpers';
1516

16-
export type ConnectedResourcesProps =
17-
| { connection: Connection; pvc?: undefined }
18-
| { connection?: undefined; pvc: PersistentVolumeClaimKind };
17+
export type ConnectedResourcesProps = EitherNotBoth<
18+
{ connection: Connection },
19+
{ pvc: PersistentVolumeClaimKind }
20+
>;
1921

2022
const ConnectedResources: React.FC<ConnectedResourcesProps> = ({ connection, pvc }) => {
2123
const { notebooks: connectedNotebooks, loaded: notebooksLoaded } = useRelatedNotebooks(

0 commit comments

Comments
 (0)