{description}
- {!isExpandable && ( - setIsModalOpen(true)} - > - {t('See more')} - - )} -{subtitle}
diff --git a/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx b/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx index b54277b4ac2d..44bd560f39bd 100644 --- a/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx +++ b/superset-frontend/src/components/ErrorMessage/ErrorMessageWithStackTrace.tsx @@ -32,7 +32,6 @@ type Props = { copyText?: string; stackTrace?: string; source?: ErrorSource; - description?: string; errorMitigationFunction?: () => void; }; @@ -44,7 +43,6 @@ export default function ErrorMessageWithStackTrace({ link, stackTrace, source, - description, }: Props) { // Check if a custom error message component was registered for this message if (error) { @@ -68,7 +66,6 @@ export default function ErrorMessageWithStackTrace({ title={title} subtitle={subtitle} copyText={copyText} - description={description} source={source} body={ link || stackTrace ? ( diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx index 5283049e8cc7..a4451822aff8 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx @@ -42,7 +42,6 @@ import IconButton from 'src/components/IconButton'; import InfoTooltip from 'src/components/InfoTooltip'; import withToasts from 'src/components/MessageToasts/withToasts'; import ValidatedInput from 'src/components/Form/LabeledErrorBoundInput'; -import ErrorMessageWithStackTrace from 'src/components/ErrorMessage/ErrorMessageWithStackTrace'; import ErrorAlert from 'src/components/ImportModal/ErrorAlert'; import { testDatabaseConnection, @@ -66,6 +65,7 @@ import ExtraOptions from './ExtraOptions'; import SqlAlchemyForm from './SqlAlchemyForm'; import DatabaseConnectionForm from './DatabaseConnectionForm'; import { + antDErrorAlertStyles, antDAlertStyles, antdWarningAlertStyles, StyledAlertMargin, @@ -112,12 +112,6 @@ const TabsStyled = styled(Tabs)` } `; -const ErrorAlertContainer = styled.div` - ${({ theme }) => ` - margin: ${theme.gridUnit * 8}px ${theme.gridUnit * 4}px; - `}; -`; - interface DatabaseModalProps { addDangerToast: (msg: string) => void; addSuccessToast: (msg: string) => void; @@ -477,7 +471,7 @@ const DatabaseModal: FunctionComponent