simplify component rendering logic
Per feedback here: https://github.com/backstage/backstage/pull/9635#discussion_r813156878 Signed-off-by: Mike Ball <mikedball@gmail.com>
This commit is contained in:
@@ -243,15 +243,13 @@ export const IncidentListItem = ({
|
||||
|
||||
{incident.incidentLink && incident.incidentNumber && (
|
||||
<ListItemSecondaryAction>
|
||||
{!readOnly ? (
|
||||
{!readOnly && (
|
||||
<IncidentAction
|
||||
currentPhase={incident.currentPhase || ''}
|
||||
incidentId={incident.entityId}
|
||||
resolveAction={handleResolveIncident}
|
||||
acknowledgeAction={handleAcknowledgeIncident}
|
||||
/>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
<Tooltip title="View in Splunk On-Call" placement="top">
|
||||
<IconButton
|
||||
|
||||
Reference in New Issue
Block a user