Merge pull request #21737 from backstage/camilaibs/rename-extension-boundary-fallback

[DI] Rename extension error boundary fallback prop
This commit is contained in:
Fredrik Adelöw
2023-12-05 12:09:00 +01:00
committed by GitHub
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>