mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +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
@@ -67,6 +67,14 @@ const ConfirmModalStyled = styled.div`
|
||||
}
|
||||
`;
|
||||
|
||||
const StyledSpan = styled.span`
|
||||
cursor: pointer;
|
||||
color: ${({ theme }) => theme.colors.primary.dark1};
|
||||
&: hover {
|
||||
color: ${({ theme }) => theme.colors.primary.dark2};
|
||||
}
|
||||
`;
|
||||
|
||||
const TABLE_COLUMNS = [
|
||||
'name',
|
||||
'type',
|
||||
@@ -191,13 +199,14 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({
|
||||
connection: ds.database.database_name,
|
||||
schema: ds.schema,
|
||||
name: (
|
||||
<a
|
||||
href="#"
|
||||
<StyledSpan
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
data-test="datasource-link"
|
||||
onClick={() => selectDatasource({ type: 'table', ...ds })}
|
||||
className="datasource-link"
|
||||
>
|
||||
{ds.table_name}
|
||||
</a>
|
||||
</StyledSpan>
|
||||
),
|
||||
type: ds.kind,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user