Skip to content

Commit

Permalink
change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed May 4, 2021
1 parent 582900c commit 39e3669
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +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 Icon from 'src/components/Icon';
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';
Expand All @@ -39,7 +39,7 @@ interface DatasetModalProps {
show: boolean;
}

const StyledIcon = styled(Icon)`
const StyledIcon = styled(Icons.WarningSolid)`
margin: auto ${({ theme }) => theme.gridUnit * 2}px auto 0;
`;

Expand All @@ -65,6 +65,8 @@ const DatasetModal: FunctionComponent<DatasetModalProps> = ({
addDangerToast,
);

const theme = useTheme();

const onChange = ({
dbId,
schema,
Expand Down Expand Up @@ -107,7 +109,7 @@ const DatasetModal: FunctionComponent<DatasetModalProps> = ({
show={show}
title={
<>
<StyledIcon name="warning-solid" />
<StyledIcon iconColor={theme.colors.grayscale.base}/>
{t('Add dataset')}
</>
}
Expand Down

0 comments on commit 39e3669

Please sign in to comment.