style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
@@ -7,28 +7,28 @@
|
||||
* text + component stack so failures are diagnosable in the field.
|
||||
*/
|
||||
|
||||
import React from 'react'
|
||||
import React from 'react';
|
||||
|
||||
interface ErrorBoundaryProps {
|
||||
children: React.ReactNode
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
interface ErrorBoundaryState {
|
||||
error: Error | null
|
||||
info: string | null
|
||||
error: Error | null;
|
||||
info: string | null;
|
||||
}
|
||||
|
||||
export class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
||||
state: ErrorBoundaryState = { error: null, info: null }
|
||||
state: ErrorBoundaryState = { error: null, info: null };
|
||||
|
||||
static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState> {
|
||||
return { error }
|
||||
return { error };
|
||||
}
|
||||
|
||||
componentDidCatch(error: Error, info: React.ErrorInfo) {
|
||||
// Log for DevTools / future telemetry; also kept in state for on-screen display.
|
||||
console.error('[CalendarShell crash]', error, info.componentStack)
|
||||
this.setState({ info: info.componentStack ?? null })
|
||||
console.error('[CalendarShell crash]', error, info.componentStack);
|
||||
this.setState({ info: info.componentStack ?? null });
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -62,8 +62,8 @@ export class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoun
|
||||
{this.state.info ? '\n\n--- component stack ---' + this.state.info : ''}
|
||||
</pre>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
return this.props.children
|
||||
return this.props.children;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user