Skip to content

Commit

Permalink
fix(Menu): work around ConfigContext error
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Jun 13, 2024
1 parent e6e8c91 commit 9f26209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export interface MenuGroupProps {
export const MenuGroup: FC<MenuGroupProps> = findModuleExport(
(e: Export) =>
(e?.toString()?.includes?.('bInGamepadUI:') &&
fakeRenderComponent(() => e({ overview: { appid: 7 } }))?.type?.prototype?.RenderSubMenu) ||
(e?.prototype?.RenderSubMenu && e?.prototype?.ShowSubMenu),
fakeRenderComponent(() => e({ overview: { appid: 7 } }), {useContext: () => ({IN_GAMEPADUI: true})})?.type?.prototype?.RenderSubMenu) ||
(e?.prototype?.RenderSubMenu && e?.prototype?.ShowSubMenu)
);
export interface MenuItemProps extends FooterLegendProps {
bInteractableItem?: boolean;
Expand Down

0 comments on commit 9f26209

Please sign in to comment.