fix(splunk-on-call-plugin): linting errors

This commit is contained in:
Remi
2021-02-07 22:03:19 +01:00
parent 659efc12f3
commit abd81b53ee
2 changed files with 2 additions and 20 deletions
@@ -27,7 +27,6 @@ import {
} from '@material-ui/core';
import Avatar from '@material-ui/core/Avatar';
import EmailIcon from '@material-ui/icons/Email';
import OpenInBrowserIcon from '@material-ui/icons/OpenInBrowser';
import { User } from '../types';
const useStyles = makeStyles({
@@ -62,18 +61,6 @@ export const EscalationUser = ({ user }: Props) => {
<EmailIcon color="primary" />
</IconButton>
</Tooltip>
{/* {user._selfUrl && (
<Tooltip title="View in SplunkOnCall" placement="top">
<IconButton
href={`https://api.victorops.com${user._selfUrl.replace('/api-public', '')}`}
target="_blank"
rel="noopener noreferrer"
color="primary"
>
<OpenInBrowserIcon />
</IconButton>
</Tooltip>
)} */}
</ListItemSecondaryAction>
</ListItem>
);
@@ -31,7 +31,6 @@ import {
StatusError,
StatusWarning,
StatusOK,
identityApiRef,
useApi,
alertApiRef,
} from '@backstage/core';
@@ -138,7 +137,7 @@ export const IncidentListItem = ({ incident, onIncidentAction }: Props) => {
: incident.monitorName;
const [
{ value: resolveValue, loading: _resolveLoading, error: resolveError },
{ value: resolveValue, error: resolveError },
handleResolveIncident,
] = useAsyncFn(
async ({ incidentNames }: PatchIncidentRequest) =>
@@ -148,11 +147,7 @@ export const IncidentListItem = ({ incident, onIncidentAction }: Props) => {
);
const [
{
value: acknowledgeValue,
loading: _acknowledgeLoading,
error: acknowledgeError,
},
{ value: acknowledgeValue, error: acknowledgeError },
handleAcknowledgeIncident,
] = useAsyncFn(
async ({ incidentNames }: PatchIncidentRequest) =>