fix what I broke

This commit is contained in:
Nuckyz 2024-09-18 14:51:33 -03:00
parent b1f3925361
commit f9ef683191
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -43,7 +43,7 @@ export function SettingsTab({ title, children }: React.PropsWithChildren<{ title
export const handleSettingsTabError = onlyOnce(handleComponentFailed);
export function wrapTab(component: React.ComponentType<AnyRecord>, tab: string) {
export function wrapTab<P extends AnyRecord>(component: React.ComponentType<P>, tab: string) {
return ErrorBoundary.wrap(component, {
message: `Failed to render the ${tab} tab. If this issue persists, try using the installer to reinstall!`,
onError: handleSettingsTabError,