Skip to content

Commit

Permalink
SDK - expose useLastNamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
upalatucci committed Jul 13, 2022
1 parent b3d0c05 commit 9f1e88d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -20,6 +20,7 @@ import {
UseUserSettings,
QuickStartsLoaderProps,
UseURLPoll,
UseLastNamespace,
} from './internal-types';

export const ActivityItem: React.FC<ActivityItemProps> = require('@console/shared/src/components/dashboard/activity-card/ActivityItem')
Expand Down Expand Up @@ -66,3 +67,6 @@ export const useUserSettings: UseUserSettings = require('@console/shared/src/hoo
.useUserSettings;
export const useURLPoll: UseURLPoll = require('@console/internal/components/utils/url-poll-hook')
.useURLPoll;
export const useLastNamespace: UseLastNamespace = require('@console/app/src/components/detect-namespace/useLastNamespace')
.useLastNamespace;

Expand Up @@ -178,6 +178,12 @@ export type Options = {

export type UseActiveNamespace = () => [string, (ns: string) => void];

export type UseLastNamespace = () => [
string,
React.Dispatch<React.SetStateAction<string>>,
boolean,
];

export type VirtualizedGridProps = {
items: VirtualizedGridItem[] | VirtualizedGridGroupedItems;
renderCell: VirtualizedGridRenderCell;
Expand Down

0 comments on commit 9f1e88d

Please sign in to comment.