Skip to content

Commit

Permalink
fix: contextMenu coremod
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Jan 29, 2025
1 parent d1bd189 commit 5021a17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/renderer/coremods/contextMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { React, components, lodash } from "@common";
import { React, lodash } from "@common";
import { ContextMenu } from "@components";
import type { MenuProps } from "@components/ContextMenu";
import type {
ContextMenuTypes,
Expand Down Expand Up @@ -87,7 +88,7 @@ export function _insertMenuItems(props: ContextMenuProps): ContextMenuProps {
children: lodash.cloneDeep(props.children),
};

const { MenuGroup } = components;
const { MenuGroup } = ContextMenu;
const repluggedGroup = <MenuGroup />;
repluggedGroup.props.children = [];

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/coremods/contextMenu/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export default [
],
},
{
find: ".Menu,{",
find: "navId:",
replacements: [
{
match: /\.Menu,{/g,
match: /return\(0,\w+\.\w+\)\(\w+\.\w+,{/g,
replace: (prefix) => `${prefix}data:arguments,`,
},
],
Expand Down

0 comments on commit 5021a17

Please sign in to comment.