summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/DropdownMultiselect.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/modals/DropdownMultiselect.tsx')
-rw-r--r--frontend/src/components/modals/DropdownMultiselect.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/components/modals/DropdownMultiselect.tsx b/frontend/src/components/modals/DropdownMultiselect.tsx
index 542898ea..85ddab7d 100644
--- a/frontend/src/components/modals/DropdownMultiselect.tsx
+++ b/frontend/src/components/modals/DropdownMultiselect.tsx
@@ -2,11 +2,11 @@ import {
DialogButton,
DialogCheckbox,
DialogCheckboxProps,
- Export,
+ findModule,
Marquee,
Menu,
MenuItem,
- findModuleExport,
+ Module,
showContextMenu,
} from '@decky/ui';
import { FC, useCallback, useEffect, useState } from 'react';
@@ -14,8 +14,8 @@ import { useTranslation } from 'react-i18next';
import { FaChevronDown } from 'react-icons/fa';
// TODO add to dfl
-const dropDownControlButtonClass = findModuleExport((e: Export) =>
- e?.toString?.()?.includes('gamepaddropdown_DropDownControlButton'),
+const dropDownControlButtonClasses = findModule((m: Module) =>
+ m?.DropDownControlButton && m?.["duration-app-launch"],
);
const DropdownMultiselectItem: FC<
@@ -76,7 +76,7 @@ const DropdownMultiselect: FC<{
alignItems: 'center',
maxWidth: '100%',
}}
- className={dropDownControlButtonClass}
+ className={dropDownControlButtonClasses?.DropDownControlButton}
onClick={(evt) => {
evt.preventDefault();
showContextMenu(