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

@@ -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>
</>
)}
</>