mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
refactor: Fix anchor-is-valid lint warnings (#12010)
* Fix anchor-is-valid lint warnings * Change IconTooltip to use named exports
This commit is contained in:
committed by
GitHub
parent
e2f676445b
commit
8682c6fc1c
@@ -27,7 +27,7 @@ import { t } from '@superset-ui/core';
|
||||
import TableView from 'src/components/TableView';
|
||||
import Button from 'src/components/Button';
|
||||
import { fDuration } from 'src/modules/dates';
|
||||
import Link from '../../components/Link';
|
||||
import { IconTooltip } from '../../components/IconTooltip';
|
||||
import ResultSet from './ResultSet';
|
||||
import ModalTrigger from '../../components/ModalTrigger';
|
||||
import HighlightedSql from './HighlightedSql';
|
||||
@@ -175,9 +175,9 @@ const QueryTable = props => {
|
||||
let errorTooltip;
|
||||
if (q.errorMessage) {
|
||||
errorTooltip = (
|
||||
<Link tooltip={q.errorMessage}>
|
||||
<IconTooltip tooltip={q.errorMessage}>
|
||||
<i className="fa fa-exclamation-circle text-danger" />
|
||||
</Link>
|
||||
</IconTooltip>
|
||||
);
|
||||
}
|
||||
q.state = (
|
||||
@@ -188,22 +188,22 @@ const QueryTable = props => {
|
||||
);
|
||||
q.actions = (
|
||||
<div>
|
||||
<Link
|
||||
className="fa fa-pencil m-r-3"
|
||||
<IconTooltip
|
||||
className="fa fa-pencil m-r-3 pointer"
|
||||
onClick={() => restoreSql(query)}
|
||||
tooltip={t(
|
||||
'Overwrite text in the editor with a query on this table',
|
||||
)}
|
||||
placement="top"
|
||||
/>
|
||||
<Link
|
||||
className="fa fa-plus-circle m-r-3"
|
||||
<IconTooltip
|
||||
className="fa fa-plus-circle m-r-3 pointer"
|
||||
onClick={() => openQueryInNewTab(query)}
|
||||
tooltip={t('Run query in a new tab')}
|
||||
placement="top"
|
||||
/>
|
||||
<Link
|
||||
className="fa fa-trash m-r-3"
|
||||
<IconTooltip
|
||||
className="fa fa-trash m-r-3 pointer"
|
||||
tooltip={t('Remove query from log')}
|
||||
onClick={() => removeQuery(query)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user