From 910f6abfa625fdf757f9f7604c48075bd9cd7ab5 Mon Sep 17 00:00:00 2001 From: Abhay-soni-developer Date: Wed, 1 Feb 2023 17:40:10 +0530 Subject: [PATCH] changes according to feedback Signed-off-by: Abhay-soni-developer --- plugins/microsoft-calendar/README.md | 2 +- plugins/microsoft-calendar/src/components/util.ts | 4 ---- plugins/microsoft-calendar/src/hooks/useEventsQuery.ts | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/microsoft-calendar/README.md b/plugins/microsoft-calendar/README.md index a7c42da3f7..11af933cf6 100644 --- a/plugins/microsoft-calendar/README.md +++ b/plugins/microsoft-calendar/README.md @@ -4,7 +4,7 @@ Welcome to the microsoft-calendar plugin! _This plugin was created through the Backstage CLI_ -You can use this plugin by import MicrosoftCalendar from "@internal/plugin-microsoft-calendar" +You can use this plugin by import MicrosoftCalendar from "@backstage/plugin-microsoft-calendar" > import { MicrosoftCalendar } from "@internal/plugin-microsoft-calendar" diff --git a/plugins/microsoft-calendar/src/components/util.ts b/plugins/microsoft-calendar/src/components/util.ts index 08055569cf..dd52402d9d 100644 --- a/plugins/microsoft-calendar/src/components/util.ts +++ b/plugins/microsoft-calendar/src/components/util.ts @@ -65,10 +65,6 @@ export function isPassed(event: MicrosoftCalendarEvent) { } export function isAllDay(event: MicrosoftCalendarEvent) { - // if('isAllDay' in event) { - // return event.isAllDay; - // } - const startTime = DateTime.fromISO(event.start?.dateTime || ''); const endTime = DateTime.fromISO(event.end?.dateTime || ''); diff --git a/plugins/microsoft-calendar/src/hooks/useEventsQuery.ts b/plugins/microsoft-calendar/src/hooks/useEventsQuery.ts index 9e0bb8fa12..5e9dc76812 100644 --- a/plugins/microsoft-calendar/src/hooks/useEventsQuery.ts +++ b/plugins/microsoft-calendar/src/hooks/useEventsQuery.ts @@ -13,8 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// import { compact, unescape } from 'lodash'; -// import { useMemo } from 'react'; import { useQuery } from '@tanstack/react-query'; import { useApi } from '@backstage/core-plugin-api';