Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// local imports
import type { TPowerKContextTypeExtended } from "../types";
import type { TPowerKContextType } from "@/components/power-k/core/types";

type TArgs = {
activeContext: TPowerKContextTypeExtended | null;
activeContext: TPowerKContextType | null;
};

export const useExtendedContextIndicator = (_args: TArgs): string | null => null;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useCycle } from "@/hooks/store/use-cycle";
import { useModule } from "@/hooks/store/use-module";
// plane web imports
import { useExtendedContextIndicator } from "@/plane-web/components/command-palette/power-k/hooks/use-extended-context-indicator";
import type { TPowerKContextTypeExtended } from "@/plane-web/components/command-palette/power-k/types";
import { EPageStoreType, usePageStore } from "@/plane-web/hooks/store";
// local imports
import type { TPowerKContextType } from "../core/types";
Expand All @@ -25,13 +24,13 @@ export const useContextIndicator = (args: TArgs): string | null => {
const { getPageById } = usePageStore(EPageStoreType.PROJECT);
// extended context indicator
const extendedIndicator = useExtendedContextIndicator({
activeContext: activeContext as TPowerKContextTypeExtended,
activeContext,
});
let indicator: string | undefined | null = null;

switch (activeContext) {
case "work-item": {
indicator = workItemIdentifier.toString();
indicator = workItemIdentifier ? workItemIdentifier.toString() : null;
break;
}
case "cycle": {
Expand Down
Loading