mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-19 02:12:10 +08:00
refactor: adjust base components export
This commit is contained in:
@@ -9,12 +9,10 @@ function ErrorFallback({ error }: FallbackProps) {
|
||||
);
|
||||
}
|
||||
|
||||
const BaseErrorBoundary: React.FC = (props) => {
|
||||
export const BaseErrorBoundary: React.FC = (props) => {
|
||||
return (
|
||||
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
||||
{props.children}
|
||||
</ErrorBoundary>
|
||||
);
|
||||
};
|
||||
|
||||
export default BaseErrorBoundary;
|
||||
|
||||
Reference in New Issue
Block a user