From 1a979b2a3b35ac75d6c8939dab15d761e3e89af3 Mon Sep 17 00:00:00 2001 From: Lisa Kim Date: Wed, 23 Oct 2024 18:52:17 -0700 Subject: [PATCH] Fix typing --- .../NewRequest/RequestCheckout/KubeNamespaceSelector.tsx | 2 +- .../NewRequest/RequestCheckout/RequestCheckout.story.tsx | 8 ++++---- .../NewRequest/RequestCheckout/RequestCheckout.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/KubeNamespaceSelector.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/KubeNamespaceSelector.tsx index e339775fc2e28..116ac3765b898 100644 --- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/KubeNamespaceSelector.tsx +++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/KubeNamespaceSelector.tsx @@ -41,7 +41,7 @@ export function KubeNamespaceSelector({ namespaceRequired, }: { kubeClusterItem: PendingListItem; - fetchKubeNamespaces(p: KubeNamespaceRequest): Promise; + fetchKubeNamespaces(p: KubeNamespaceRequest): Promise; savedResourceItems: PendingListItem[]; toggleResource: (resource: PendingListItem) => void; bulkToggleKubeResources: ( diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.story.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.story.tsx index a65111971ab0c..693b08ace5409 100644 --- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.story.tsx +++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.story.tsx @@ -179,10 +179,10 @@ export const Success = () => ( const baseProps: RequestCheckoutWithSliderProps = { fetchKubeNamespaces: async () => [ - { value: 'namespace1', label: 'namespace1' }, - { value: 'namespace2', label: 'namespace2' }, - { value: 'namespace3', label: 'namespace3' }, - { value: 'namespace4', label: 'namespace4' }, + 'namespace1', + 'namespace2', + 'namespace3', + 'namespace4', ], bulkToggleKubeResources: () => null, createAttempt: { status: '' }, diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx index a29deb7786799..34253a22854d6 100644 --- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx +++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx @@ -928,7 +928,7 @@ export type RequestCheckoutProps = Header?: () => JSX.Element; startTime: Date; onStartTimeChange(t?: Date): void; - fetchKubeNamespaces(p: KubeNamespaceRequest): Promise; + fetchKubeNamespaces(p: KubeNamespaceRequest): Promise; bulkToggleKubeResources( kubeResources: PendingKubeResourceItem[], kubeCluster: T