fix: Remove Icon and align close button on DatasetModal (#14902)

* aligned DatabaseModal header

* revisions
This commit is contained in:
AAfghahi 2021-06-01 14:53:59 -04:00 committed by GitHub
parent eced510708
commit fac6b7c207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 11 deletions

View File

@ -20,7 +20,6 @@ import React, { FunctionComponent, useState } from 'react';
import { styled, t } from '@superset-ui/core';
import { useSingleViewResource } from 'src/views/CRUD/hooks';
import { isEmpty, isNil } from 'lodash';
import Icon from 'src/components/Icon';
import Modal from 'src/components/Modal';
import TableSelector from 'src/components/TableSelector';
import withToasts from 'src/messageToasts/enhancers/withToasts';
@ -39,10 +38,6 @@ interface DatasetModalProps {
show: boolean;
}
const StyledIcon = styled(Icon)`
margin: auto ${({ theme }) => theme.gridUnit * 2}px auto 0;
`;
const TableSelectorContainer = styled.div`
padding-bottom: 340px;
width: 65%;
@ -105,12 +100,7 @@ const DatasetModal: FunctionComponent<DatasetModalProps> = ({
onHide={onHide}
primaryButtonName={t('Add')}
show={show}
title={
<>
<StyledIcon name="warning-solid" />
{t('Add dataset')}
</>
}
title={t('Add dataset')}
>
<TableSelectorContainer>
<TableSelector