fix: types

This commit is contained in:
DIYgod 2024-09-02 16:46:08 +08:00
parent c9e65dcdde
commit 7f5bb1e934
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ export const withSettingEnabled =
forwardRef<any, P>((props, ref) => {
const res = useSettings.select(condition)
return res ?
// @ts-expect-error
createElement(IfComponent, { ...props, ref }) :
// @ts-expect-error
createElement(ElseComponent, { ...props, ref })
})