diff --git a/src/components/ErrorBoundary/index.tsx b/src/components/ErrorBoundary/index.tsx index 59a91e5a..0c5707c2 100644 --- a/src/components/ErrorBoundary/index.tsx +++ b/src/components/ErrorBoundary/index.tsx @@ -1,5 +1,5 @@ import { getIntl } from '@umijs/max'; -import { Button, Result } from 'antd'; +import { Button, Card, Result } from 'antd'; import React from 'react'; function isChunkLoadError(error: Error): boolean { @@ -27,38 +27,40 @@ function renderErrorFallback( const isChunkError = isChunkLoadError(error); return ( - - {intl.formatMessage({ - id: 'app.error.retry', - defaultMessage: 'Refresh', - })} - , - , - ]} - /> + + + {intl.formatMessage({ + id: 'app.error.retry', + defaultMessage: 'Refresh', + })} + , + , + ]} + /> + ); } diff --git a/src/components/OfflineBanner/index.tsx b/src/components/OfflineBanner/index.tsx index c9e7b67d..85aca1c9 100644 --- a/src/components/OfflineBanner/index.tsx +++ b/src/components/OfflineBanner/index.tsx @@ -23,8 +23,9 @@ const OfflineBanner: React.FC = () => { return (