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

@@ -790,12 +790,12 @@ class DatasourceEditor extends React.PureComponent {
</Fieldset>
{this.allowEditSource && (
<EditLockContainer>
<a href="#" onClick={this.onChangeEditMode}>
<span role="button" tabIndex={0} onClick={this.onChangeEditMode}>
<Icon
color={supersetTheme.colors.grayscale.base}
name={this.state.isEditMode ? 'lock-unlocked' : 'lock-locked'}
/>
</a>
</span>
{!this.state.isEditMode && (
<div>{t('Click the lock to make changes.')}</div>
)}