fix(components): fix missing children prop

also remove unnessecary use of tsx
This commit is contained in:
AAGaming
2024-05-27 13:19:11 -04:00
parent 6c1b12b95f
commit 688c7471cd
27 changed files with 23 additions and 20 deletions

View File

@@ -0,0 +1,15 @@
import { FC } from 'react';
import { CommonUIModule } from '../webpack';
import { ItemProps } from './Item';
export interface ToggleFieldProps extends ItemProps {
highlightOnFocus?: boolean;
checked: boolean;
disabled?: boolean;
onChange?(checked: boolean): void;
}
export const ToggleField = Object.values(CommonUIModule).find((mod: any) =>
mod?.render?.toString()?.includes('ToggleField,fallback'),
) as FC<ToggleFieldProps>;