Skip to content

Commit 3a57153

Browse files
committed
mod: code review
1 parent 1c8f30a commit 3a57153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/ErrorBoundary/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface IState {
1111
errInfo: string;
1212
}
1313

14-
function ErrorFallback(props: { errInfo: string }) {
14+
function ErrorPanel(props: { errInfo: string }) {
1515
const { errInfo } = props;
1616
const { intl } = useI18n();
1717
const handleCopy = useCallback(() => {
@@ -61,7 +61,7 @@ class ErrorBoundary extends React.PureComponent<IProps, IState> {
6161
render() {
6262
const { errInfo } = this.state;
6363
if(!errInfo) return this.props.children;
64-
return <ErrorFallback errInfo={errInfo} />;
64+
return <ErrorPanel errInfo={errInfo} />;
6565
}
6666
}
6767

0 commit comments

Comments
 (0)