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
@@ -16,6 +16,7 @@
|
||||
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import React from 'react';
|
||||
|
||||
const useStyles = makeStyles((theme: BackstageTheme) => {
|
||||
@@ -29,5 +30,9 @@ const useStyles = makeStyles((theme: BackstageTheme) => {
|
||||
|
||||
export const Value = (props: { value?: string }) => {
|
||||
const classes = useStyles();
|
||||
return <span className={classes.value}>{props.value}</span>;
|
||||
return (
|
||||
<Typography component="span" className={classes.value}>
|
||||
{props.value}
|
||||
</Typography>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user