mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
fix json field form, replaced auth form
This commit is contained in:
@@ -34,11 +34,13 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
||||
|
||||
private renderFallback() {
|
||||
if (this.props.fallback) {
|
||||
return typeof this.props.fallback === "function"
|
||||
? this.props.fallback({ error: this.state.error!, resetError: this.resetError })
|
||||
: this.props.fallback;
|
||||
return typeof this.props.fallback === "function" ? (
|
||||
this.props.fallback({ error: this.state.error!, resetError: this.resetError })
|
||||
) : (
|
||||
<BaseError>{this.props.fallback}</BaseError>
|
||||
);
|
||||
}
|
||||
return <BaseError>Error</BaseError>;
|
||||
return <BaseError>Error1</BaseError>;
|
||||
}
|
||||
|
||||
override render() {
|
||||
|
||||
@@ -6,7 +6,6 @@ import {
|
||||
useRef,
|
||||
useState,
|
||||
} from "react";
|
||||
import { useEvent } from "ui/hooks/use-event";
|
||||
import {
|
||||
type CleanOptions,
|
||||
type InputElement,
|
||||
|
||||
Reference in New Issue
Block a user