fix(ErrorFallback): fix style of Feedback button

This commit is contained in:
Rain 2023-10-09 12:44:55 +08:00
parent fa3127e467
commit 869f3001e4

View File

@ -12,7 +12,9 @@ export const ErrorFallback: FC<FallbackProps> = ({ error }) => {
const subTitle = ( const subTitle = (
<Trans> <Trans>
{'This is likely a NocoBase internals bug. Please open an issue at '} {'This is likely a NocoBase internals bug. Please open an issue at '}
<Link href="https://github.com/nocobase/nocobase/issues">here</Link> <Link href="https://github.com/nocobase/nocobase/issues" target="_blank">
here
</Link>
</Trans> </Trans>
); );
@ -24,8 +26,8 @@ export const ErrorFallback: FC<FallbackProps> = ({ error }) => {
title={t('Render Failed')} title={t('Render Failed')}
subTitle={subTitle} subTitle={subTitle}
extra={[ extra={[
<Button type="primary" key="feedback"> <Button type="primary" key="feedback" href="https://github.com/nocobase/nocobase/issues" target="_blank">
<a href="https://github.com/nocobase/nocobase/issues">{t('Feedback')}</a> {t('Feedback')}
</Button>, </Button>,
<Button key="try" onClick={resetBoundary}> <Button key="try" onClick={resetBoundary}>
{t('Try again')} {t('Try again')}