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 React, { useState, useEffect } from 'react';
import Typography from '@material-ui/core/Typography';
import { Website, lighthouseApiRef } from '../../api';
import useInterval from 'react-use/lib/useInterval';
import {
@@ -112,7 +113,9 @@ export const AuditListTable = ({ items }: { items: Website[] }) => {
lastReport: (
<>
<AuditStatusIcon audit={website.lastAudit} />{' '}
<span>{website.lastAudit.status.toLocaleUpperCase('en-US')}</span>
<Typography component="span">
{website.lastAudit.status.toLocaleUpperCase('en-US')}
</Typography>
</>
),
lastAuditTriggered: formatTime(website.lastAudit.timeCreated),
@@ -14,6 +14,7 @@
* limitations under the License.
*/
import React from 'react';
import Typography from '@material-ui/core/Typography';
import { Audit, AuditCompleted, LighthouseCategoryId } from '../../api';
import { useWebsiteForEntity } from '../../hooks/useWebsiteForEntity';
import AuditStatusIcon from '../AuditStatusIcon';
@@ -52,7 +53,7 @@ const LighthouseCategoryScoreStatus = (props: { score: number }) => {
</>
);
default:
return <span>N/A</span>;
return <Typography component="span">N/A</Typography>;
}
};