mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +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
@@ -114,9 +114,14 @@ export default function ErrorAlert({
|
||||
<strong>{title}</strong>
|
||||
</LeftSideContent>
|
||||
{!isExpandable && (
|
||||
<a href="#" className="link" onClick={() => setIsModalOpen(true)}>
|
||||
<span
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className="link"
|
||||
onClick={() => setIsModalOpen(true)}
|
||||
>
|
||||
{t('See More')}
|
||||
</a>
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{isExpandable ? (
|
||||
@@ -125,25 +130,27 @@ export default function ErrorAlert({
|
||||
{body && (
|
||||
<>
|
||||
{!isBodyExpanded && (
|
||||
<a
|
||||
href="#"
|
||||
<span
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className="link"
|
||||
onClick={() => setIsBodyExpanded(true)}
|
||||
>
|
||||
{t('See More')}
|
||||
</a>
|
||||
</span>
|
||||
)}
|
||||
{isBodyExpanded && (
|
||||
<>
|
||||
<br />
|
||||
{body}
|
||||
<a
|
||||
href="#"
|
||||
<span
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
className="link"
|
||||
onClick={() => setIsBodyExpanded(false)}
|
||||
>
|
||||
{t('See Less')}
|
||||
</a>
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user