diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx index ea184acce4ea..81f09a9f4944 100644 --- a/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx +++ b/superset-frontend/src/views/CRUD/data/dataset/AddDatasetModal.tsx @@ -17,9 +17,10 @@ * under the License. */ import React, { FunctionComponent, useState } from 'react'; -import { styled, t } from '@superset-ui/core'; +import { styled, t, useTheme } from '@superset-ui/core'; import { useSingleViewResource } from 'src/views/CRUD/hooks'; import { isEmpty, isNil } from 'lodash'; +import Icons from 'src/components/Icons'; import Modal from 'src/components/Modal'; import TableSelector from 'src/components/TableSelector'; import withToasts from 'src/messageToasts/enhancers/withToasts'; @@ -38,6 +39,10 @@ interface DatasetModalProps { show: boolean; } +const StyledIcon = styled(Icons.WarningSolid)` + margin: auto ${({ theme }) => theme.gridUnit * 2}px auto 0; +`; + const TableSelectorContainer = styled.div` padding-bottom: 340px; width: 65%; @@ -60,6 +65,8 @@ const DatasetModal: FunctionComponent = ({ addDangerToast, ); + const theme = useTheme(); + const onChange = ({ dbId, schema, @@ -100,7 +107,12 @@ const DatasetModal: FunctionComponent = ({ onHide={onHide} primaryButtonName={t('Add')} show={show} - title={t('Add dataset')} + title={ + <> + + {t('Add dataset')} + + } >