mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: Remove Icon and align close button on DatasetModal (#14902)
* aligned DatabaseModal header * revisions
This commit is contained in:
parent
eced510708
commit
fac6b7c207
@ -20,7 +20,6 @@ import React, { FunctionComponent, useState } from 'react';
|
|||||||
import { styled, t } from '@superset-ui/core';
|
import { styled, t } from '@superset-ui/core';
|
||||||
import { useSingleViewResource } from 'src/views/CRUD/hooks';
|
import { useSingleViewResource } from 'src/views/CRUD/hooks';
|
||||||
import { isEmpty, isNil } from 'lodash';
|
import { isEmpty, isNil } from 'lodash';
|
||||||
import Icon from 'src/components/Icon';
|
|
||||||
import Modal from 'src/components/Modal';
|
import Modal from 'src/components/Modal';
|
||||||
import TableSelector from 'src/components/TableSelector';
|
import TableSelector from 'src/components/TableSelector';
|
||||||
import withToasts from 'src/messageToasts/enhancers/withToasts';
|
import withToasts from 'src/messageToasts/enhancers/withToasts';
|
||||||
@ -39,10 +38,6 @@ interface DatasetModalProps {
|
|||||||
show: boolean;
|
show: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const StyledIcon = styled(Icon)`
|
|
||||||
margin: auto ${({ theme }) => theme.gridUnit * 2}px auto 0;
|
|
||||||
`;
|
|
||||||
|
|
||||||
const TableSelectorContainer = styled.div`
|
const TableSelectorContainer = styled.div`
|
||||||
padding-bottom: 340px;
|
padding-bottom: 340px;
|
||||||
width: 65%;
|
width: 65%;
|
||||||
@ -105,12 +100,7 @@ const DatasetModal: FunctionComponent<DatasetModalProps> = ({
|
|||||||
onHide={onHide}
|
onHide={onHide}
|
||||||
primaryButtonName={t('Add')}
|
primaryButtonName={t('Add')}
|
||||||
show={show}
|
show={show}
|
||||||
title={
|
title={t('Add dataset')}
|
||||||
<>
|
|
||||||
<StyledIcon name="warning-solid" />
|
|
||||||
{t('Add dataset')}
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<TableSelectorContainer>
|
<TableSelectorContainer>
|
||||||
<TableSelector
|
<TableSelector
|
||||||
|
Loading…
Reference in New Issue
Block a user