fix(components): fix missing components on oct 2 2024 beta

This commit is contained in:
AAGaming
2024-10-03 16:46:50 -04:00
parent 8c6043b5a7
commit 0f9fb5a3b8
4 changed files with 13 additions and 10 deletions

View File

@@ -28,9 +28,12 @@ export const DialogCheckbox = Object.values(
}),
).find(
(m: any) =>
m.contextType &&
m.prototype?.render.toString().includes('fallback:') &&
m?.prototype?.SetChecked &&
m?.prototype?.Toggle &&
m?.prototype?.GetPanelElementProps,
m?.prototype?.GetPanelElementProps &&
// beta || stable as of oct 2 2024
(m?.prototype?.render?.toString().includes('="DialogCheckbox"') || (
m.contextType &&
m.prototype?.render.toString().includes('fallback:')
))
) as FC<DialogCheckboxProps>;