fix: Apply linter <span> rule
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
committed by
Carlos Lopez
parent
0dfaf1b78b
commit
1daac71e74
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user