mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-11 23:53:03 -04:00
new plugin FullUserInChatbox (#2766)
This commit is contained in:
parent
0fd76ab15a
commit
20ed7dc96b
4 changed files with 59 additions and 2 deletions
|
@ -27,7 +27,7 @@ interface Props<T = any> {
|
|||
/** Render nothing if an error occurs */
|
||||
noop?: boolean;
|
||||
/** Fallback component to render if an error occurs */
|
||||
fallback?: React.ComponentType<React.PropsWithChildren<{ error: any; message: string; stack: string; }>>;
|
||||
fallback?: React.ComponentType<React.PropsWithChildren<{ error: any; message: string; stack: string; wrappedProps: T; }>>;
|
||||
/** called when an error occurs. The props property is only available if using .wrap */
|
||||
onError?(data: { error: Error, errorInfo: React.ErrorInfo, props: T; }): void;
|
||||
/** Custom error message */
|
||||
|
@ -81,6 +81,7 @@ const ErrorBoundary = LazyComponent(() => {
|
|||
|
||||
if (this.props.fallback)
|
||||
return <this.props.fallback
|
||||
wrappedProps={this.props.wrappedProps}
|
||||
children={this.props.children}
|
||||
{...this.state}
|
||||
/>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue