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:
Michael S. Molina
2020-12-22 04:58:05 -03:00
committed by GitHub
parent e2f676445b
commit 8682c6fc1c
15 changed files with 115 additions and 80 deletions

View File

@@ -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,
}));