mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -18,8 +18,9 @@
|
||||
*/
|
||||
import { ReactNode } from 'react';
|
||||
import { ErrorSource, t, SupersetError } from '@superset-ui/core';
|
||||
import getErrorMessageComponentRegistry from './getErrorMessageComponentRegistry';
|
||||
import ErrorAlert from './ErrorAlert';
|
||||
import { Typography } from '@superset-ui/core/components';
|
||||
import { getErrorMessageComponentRegistry } from './getErrorMessageComponentRegistry';
|
||||
import { ErrorAlert } from './ErrorAlert';
|
||||
|
||||
const DEFAULT_TITLE = t('Unexpected error');
|
||||
|
||||
@@ -38,7 +39,7 @@ type Props = {
|
||||
compact?: boolean;
|
||||
};
|
||||
|
||||
export default function ErrorMessageWithStackTrace({
|
||||
export function ErrorMessageWithStackTrace({
|
||||
title = DEFAULT_TITLE,
|
||||
error,
|
||||
subtitle,
|
||||
@@ -75,9 +76,13 @@ export default function ErrorMessageWithStackTrace({
|
||||
(link || stackTrace ? (
|
||||
<>
|
||||
{link && (
|
||||
<a href={link} target="_blank" rel="noopener noreferrer">
|
||||
<Typography.Link
|
||||
href={link}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{t('Request Access')}
|
||||
</a>
|
||||
</Typography.Link>
|
||||
)}
|
||||
<br />
|
||||
{stackTrace && <pre>{stackTrace}</pre>}
|
||||
|
||||
Reference in New Issue
Block a user