Skip to content

Commit

Permalink
refactor: icon to icons for sliceheader component (#15567)
Browse files Browse the repository at this point in the history
* initial commit

* put back code
  • Loading branch information
pkdotson committed Jul 8, 2021
1 parent 4685d86 commit 4ab565c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions superset-frontend/src/dashboard/components/SliceHeader/index.tsx
Expand Up @@ -23,7 +23,7 @@ import { useDispatch, useSelector } from 'react-redux';
import EditableTitle from 'src/components/EditableTitle';
import SliceHeaderControls from 'src/dashboard/components/SliceHeaderControls';
import FiltersBadge from 'src/dashboard/components/FiltersBadge';
import Icon from 'src/components/Icon';
import Icons from 'src/components/Icons';
import { RootState } from 'src/dashboard/types';
import FilterIndicator from 'src/dashboard/components/FiltersBadge/FilterIndicator';
import { clearDataMask } from 'src/dataMask/actions';
Expand Down Expand Up @@ -69,12 +69,9 @@ type SliceHeaderProps = {
const annotationsLoading = t('Annotation layers are still loading.');
const annotationsError = t('One ore more annotation layers failed loading.');

const CrossFilterIcon = styled(Icon)`
fill: ${({ theme }) => theme.colors.grayscale.light5};
const CrossFilterIcon = styled(Icons.CursorTarget)`
cursor: pointer;
& circle {
fill: ${({ theme }) => theme.colors.primary.base};
}
color: ${({ theme }) => theme.colors.primary.base};
height: 22px;
width: 22px;
`;
Expand Down Expand Up @@ -174,7 +171,6 @@ const SliceHeader: FC<SliceHeaderProps> = ({
}
>
<CrossFilterIcon
name="cross-filter-badge"
onClick={() => dispatch(clearDataMask(slice?.slice_id))}
/>
</Tooltip>
Expand Down

0 comments on commit 4ab565c

Please sign in to comment.