From abd81b53ee02351a65709e07a2ca735f4cf990f5 Mon Sep 17 00:00:00 2001 From: Remi Date: Sun, 7 Feb 2021 22:03:19 +0100 Subject: [PATCH] fix(splunk-on-call-plugin): linting errors --- .../src/components/Escalation/EscalationUser.tsx | 13 ------------- .../src/components/Incident/IncidentListItem.tsx | 9 ++------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/plugins/splunk-on-call/src/components/Escalation/EscalationUser.tsx b/plugins/splunk-on-call/src/components/Escalation/EscalationUser.tsx index 7bc3069e4e..4df0719696 100644 --- a/plugins/splunk-on-call/src/components/Escalation/EscalationUser.tsx +++ b/plugins/splunk-on-call/src/components/Escalation/EscalationUser.tsx @@ -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) => { - {/* {user._selfUrl && ( - - - - - - )} */} ); diff --git a/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx b/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx index beaf1b4848..775c491a2b 100644 --- a/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx +++ b/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx @@ -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) =>