refactor: rename extension error boundary fallback prop

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-12-05 11:48:31 +01:00
parent 6e046cb507
commit eb4f52723b
2 changed files with 3 additions and 3 deletions
@@ -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>