From 18c2dcb368f4dfcefdb0fcd211dbf5eb1c772c32 Mon Sep 17 00:00:00 2001 From: Samira Mokaram Date: Fri, 4 Dec 2020 09:58:45 +0100 Subject: [PATCH] remove pagerduty logo --- .../components/Escalation/EscalationUser.tsx | 4 +-- .../Incident/IncidentEmptyState.tsx | 4 +-- .../components/Incident/IncidentListItem.tsx | 4 +-- .../components/Incident/Incidents.test.tsx | 4 +-- .../src/components/PagerDutyIcon.tsx | 27 ------------------- 5 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 plugins/pagerduty/src/components/PagerDutyIcon.tsx diff --git a/plugins/pagerduty/src/components/Escalation/EscalationUser.tsx b/plugins/pagerduty/src/components/Escalation/EscalationUser.tsx index 3847896e89..41995c86f5 100644 --- a/plugins/pagerduty/src/components/Escalation/EscalationUser.tsx +++ b/plugins/pagerduty/src/components/Escalation/EscalationUser.tsx @@ -27,7 +27,7 @@ import { } from '@material-ui/core'; import Avatar from '@material-ui/core/Avatar'; import EmailIcon from '@material-ui/icons/Email'; -import { PagerDutyIcon } from '../PagerDutyIcon'; +import OpenInBrowserIcon from '@material-ui/icons/OpenInBrowser'; import { User } from '../types'; const useStyles = makeStyles({ @@ -69,7 +69,7 @@ export const EscalationUser = ({ user }: Props) => { rel="noopener noreferrer" color="primary" > - + diff --git a/plugins/pagerduty/src/components/Incident/IncidentEmptyState.tsx b/plugins/pagerduty/src/components/Incident/IncidentEmptyState.tsx index ded161261e..c140620bb3 100644 --- a/plugins/pagerduty/src/components/Incident/IncidentEmptyState.tsx +++ b/plugins/pagerduty/src/components/Incident/IncidentEmptyState.tsx @@ -15,14 +15,14 @@ */ import React from 'react'; -import { Grid } from '@material-ui/core'; +import { Grid, Typography } from '@material-ui/core'; import EmptyStateImage from '../../assets/emptyState.svg'; export const IncidentsEmptyState = () => { return ( -

Nice! No incidents are assigned to you!

+ Nice! No incidents found!
{ rel="noopener noreferrer" color="primary" > - + diff --git a/plugins/pagerduty/src/components/Incident/Incidents.test.tsx b/plugins/pagerduty/src/components/Incident/Incidents.test.tsx index 3c5e30e0cc..9da9f9f11b 100644 --- a/plugins/pagerduty/src/components/Incident/Incidents.test.tsx +++ b/plugins/pagerduty/src/components/Incident/Incidents.test.tsx @@ -40,9 +40,7 @@ describe('Incidents', () => { ), ); await waitFor(() => !queryByTestId('progress')); - expect( - getByText('Nice! No incidents are assigned to you!'), - ).toBeInTheDocument(); + expect(getByText('Nice! No incidents found!')).toBeInTheDocument(); }); it('Renders all incidents', async () => { diff --git a/plugins/pagerduty/src/components/PagerDutyIcon.tsx b/plugins/pagerduty/src/components/PagerDutyIcon.tsx deleted file mode 100644 index 67cfc0036a..0000000000 --- a/plugins/pagerduty/src/components/PagerDutyIcon.tsx +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import React from 'react'; -import SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon'; - -export const PagerDutyIcon = (props: SvgIconProps) => - React.createElement( - SvgIcon, - props, - - - , - );