fix: Apply linter <span> rule

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2022-12-15 18:22:22 -05:00
committed by Carlos Lopez
parent 0dfaf1b78b
commit 1daac71e74
37 changed files with 212 additions and 133 deletions
@@ -14,6 +14,7 @@
* limitations under the License.
*/
import { ClassNameMap } from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import React from 'react';
import { WithLink } from '../../utils/components';
import { RadarDescription } from '../RadarDescription';
@@ -50,17 +51,18 @@ export const RadarLegendLink = ({
if (description) {
return (
<>
<span
<Typography
component="span"
className={classes.entryLink}
onClick={handleClickOpen}
role="button"
tabIndex={0}
onKeyPress={toggle}
>
<span className={active ? classes.activeEntry : classes.entry}>
<Typography component="span" className={active ? classes.activeEntry : classes.entry}>
{title}
</span>
</span>
</Typography>
</Typography>
{open && (
<RadarDescription
open={open}
@@ -75,9 +77,9 @@ export const RadarLegendLink = ({
}
return (
<WithLink url={url} className={classes.entryLink}>
<span className={active ? classes.activeEntry : classes.entry}>
<Typography component="span" className={active ? classes.activeEntry : classes.entry}>
{title}
</span>
</Typography>
</WithLink>
);
};