Skip to content

Commit

Permalink
Clean up imports and remove extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlisa committed Oct 24, 2024
1 parent 66d87d8 commit 9c96761
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import { FieldCheckbox } from 'shared/components/FieldCheckbox';
import { mergeRefs } from 'shared/libs/mergeRefs';
import { TextSelectCopyMulti } from 'shared/components/TextSelectCopy';
import { RequestableResourceKind } from 'shared/components/AccessRequests/NewRequest/resource';
import { TextSelectCopyMulti } from 'shared/components/TextSelectCopy';

import { CreateRequest } from '../../Shared/types';
import { AssumeStartTime } from '../../AssumeStartTime/AssumeStartTime';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
*/

export { RequestCheckoutWithSlider, RequestCheckout } from './RequestCheckout';
export type { RequestCheckoutProps, PendingListItem } from './RequestCheckout';
export type {
RequestCheckoutProps,
PendingListItem,
PendingKubeResourceItem,
} from './RequestCheckout';

export * from './utils';
export type { ReviewerOption } from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ export * from './RequestCheckout';
export * from './ResourceList';
export type { ResourceMap, RequestableResourceKind } from './resource';
export { getEmptyResourceState } from './resource';
export type { KubeNamespaceRequest } from './kube';
export { isKubeClusterWithNamespaces } from './kube';
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ import useAttempt from 'shared/hooks/useAttemptNext';
import {
getDryRunMaxDuration,
PendingListItem,
PendingKubeResourceItem,
isKubeClusterWithNamespaces,
KubeNamespaceRequest,
} from 'shared/components/AccessRequests/NewRequest';
import { useSpecifiableFields } from 'shared/components/AccessRequests/NewRequest/useSpecifiableFields';

import { CreateRequest } from 'shared/components/AccessRequests/Shared/types';
import {
isKubeClusterWithNamespaces,
KubeNamespaceRequest,
} from 'shared/components/AccessRequests/NewRequest/kube';
import { PendingKubeResourceItem } from 'shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout';

import { useAppContext } from 'teleterm/ui/appContextProvider';
import {
Expand Down Expand Up @@ -161,7 +159,6 @@ export default function useAccessRequestCheckout() {
}, [showCheckout, hasExited, createRequestAttempt.status]);

/**
*
* @param pendingRequest holds a list or map of resources to process
*/
function getPendingAccessRequestsPerResource(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,6 @@ export function extractResourceRequestProperties({
id: string;
/**
* Can refer to a pretty name of the resource (can be the same as `id`)
* or refer to a subresource name.
*
* For example:
* - for nodes, we want to show hostname (pretty) instead of its id.
* - for a kube subresource like "namespace", it'll refer to its name
*
*/
name: string;
} {
Expand Down

0 comments on commit 9c96761

Please sign in to comment.