Skip to content

Commit

Permalink
removing unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitakinger committed Jan 20, 2025
1 parent 2764f44 commit 3b79140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
18 changes: 0 additions & 18 deletions app/client/src/ce/entities/IDE/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,21 +139,3 @@ export type UseRoutes = Array<{
path: string[];
exact: boolean;
}>;

export enum ActionEntityContextMenuItemsEnum {
RENAME = "Rename",
SHOW_BINDING = "Show Bindings",
CONVERT_QUERY_MODULE_INSTANCE = "Create Module",
COPY = "Copy",
MOVE = "Move",
DELETE = "Delete",
}

export const defaultActionMenuItems = [
ActionEntityContextMenuItemsEnum.RENAME,
ActionEntityContextMenuItemsEnum.DELETE,
ActionEntityContextMenuItemsEnum.SHOW_BINDING,
ActionEntityContextMenuItemsEnum.COPY,
ActionEntityContextMenuItemsEnum.MOVE,
ActionEntityContextMenuItemsEnum.CONVERT_QUERY_MODULE_INSTANCE,
];
15 changes: 1 addition & 14 deletions app/client/src/ce/entities/IDE/utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import type { IDEType, EditorState } from "ee/entities/IDE/constants";
import {
defaultActionMenuItems,
IDE_TYPE,
IDEBasePaths,
} from "ee/entities/IDE/constants";
import { IDE_TYPE, IDEBasePaths } from "ee/entities/IDE/constants";
import { matchPath } from "react-router";
import { identifyEntityFromPath } from "navigation/FocusEntity";
import {
Expand Down Expand Up @@ -77,12 +73,3 @@ export const getEditableTabPermissions = ({
entity?.userPermissions || [],
);
};

export const getMenuItemsForActionEntityByIdeType = (ideType: IDEType) => {
switch (ideType) {
case IDE_TYPE.App:
return defaultActionMenuItems;
default:
return defaultActionMenuItems;
}
};

0 comments on commit 3b79140

Please sign in to comment.