refactor: rename extension error boundary fallback prop
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ import { CoreErrorBoundaryFallbackProps } from '../types';
|
||||
|
||||
type ErrorBoundaryProps = PropsWithChildren<{
|
||||
plugin?: BackstagePlugin;
|
||||
fallback: ComponentType<CoreErrorBoundaryFallbackProps>;
|
||||
Fallback: ComponentType<CoreErrorBoundaryFallbackProps>;
|
||||
}>;
|
||||
type ErrorBoundaryState = { error?: Error };
|
||||
|
||||
@@ -41,7 +41,7 @@ export class ErrorBoundary extends Component<
|
||||
|
||||
render() {
|
||||
const { error } = this.state;
|
||||
const { plugin, children, fallback: Fallback } = this.props;
|
||||
const { plugin, children, Fallback } = this.props;
|
||||
|
||||
if (error) {
|
||||
return (
|
||||
|
||||
@@ -70,7 +70,7 @@ export function ExtensionBoundary(props: ExtensionBoundaryProps) {
|
||||
|
||||
return (
|
||||
<Suspense fallback={<Progress />}>
|
||||
<ErrorBoundary plugin={plugin} fallback={fallback}>
|
||||
<ErrorBoundary plugin={plugin} Fallback={fallback}>
|
||||
<AnalyticsContext attributes={attributes}>
|
||||
<RouteTracker disableTracking={!routable}>{children}</RouteTracker>
|
||||
</AnalyticsContext>
|
||||
|
||||
Reference in New Issue
Block a user