fix(*): fixes for jun 26 beta

This commit is contained in:
AAGaming
2024-06-26 22:28:58 -04:00
parent b1e503853f
commit 7e0cb153b1
12 changed files with 63 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ import { ReactNode, FC } from 'react';
import { CommonUIModule } from '../webpack';
import { ItemProps } from './Item';
import { createPropListRegex } from '../utils';
export interface SingleDropdownOption {
data: any;
@@ -44,6 +45,7 @@ export const Dropdown = Object.values(CommonUIModule).find(
export interface DropdownItemProps extends DropdownProps, ItemProps {}
const dropdownItemRegex = createPropListRegex(["dropDownControlRef", "description"], false);
export const DropdownItem = Object.values(CommonUIModule).find((mod: any) =>
mod?.toString()?.includes('"dropDownControlRef","description"'),
mod?.toString && dropdownItemRegex.test(mod.toString()),
) as FC<DropdownItemProps>;