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() {
return (
<Wrapper class="legend" data-cy="legend">
<Wrapper className="legend" data-cy="legend">
<TextContent>
<Text
component={TextVariants.small}
style={{ 'font-weight': 'bold', color: 'black' }}
style={{ fontWeight: 'bold', color: 'black' }}
>
Legend
</Text>

View File

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