Fix JSX errors.

This commit is contained in:
Kia Lam
2022-02-09 09:19:50 -08:00
parent 9854f8a6ab
commit d785f30c5f
2 changed files with 4 additions and 4 deletions

View File

@@ -56,11 +56,11 @@ const Text = styled(PFText)`
function Legend() { function Legend() {
return ( return (
<Wrapper class="legend" data-cy="legend"> <Wrapper className="legend" data-cy="legend">
<TextContent> <TextContent>
<Text <Text
component={TextVariants.small} component={TextVariants.small}
style={{ 'font-weight': 'bold', color: 'black' }} style={{ fontWeight: 'bold', color: 'black' }}
> >
Legend Legend
</Text> </Text>

View File

@@ -50,12 +50,12 @@ function Tooltip({
redirectToDetailsPage, redirectToDetailsPage,
}) { }) {
return ( return (
<Wrapper class="tooltip" data-cy="tooltip"> <Wrapper className="tooltip" data-cy="tooltip">
{isNodeSelected === false ? ( {isNodeSelected === false ? (
<TextContent> <TextContent>
<Text <Text
component={TextVariants.small} component={TextVariants.small}
style={{ 'font-weight': 'bold', color: 'black' }} style={{ fontWeight: 'bold', color: 'black' }}
> >
Details Details
</Text> </Text>