mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 01:46:23 +00:00
fix what I broke
This commit is contained in:
parent
b1f3925361
commit
f9ef683191
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue