From 9ba97497b17c5c965c0ae723735ddbd2cdb74c1f Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Thu, 7 Jul 2022 23:57:29 +0200 Subject: [PATCH] remove useless props --- .../components/notification/notification-item.component.tsx | 2 +- .../components/notification/notification-overlay.component.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/notification/notification-item.component.tsx b/src/renderer/components/notification/notification-item.component.tsx index 3790fd72..e84c8270 100644 --- a/src/renderer/components/notification/notification-item.component.tsx +++ b/src/renderer/components/notification/notification-item.component.tsx @@ -7,7 +7,7 @@ import BeatWaitingImg from "../../../../assets/images/apngs/beat-waiting.png"; import BeatImpatientImg from "../../../../assets/images/apngs/beat-impatient.png"; import { BsmButton } from "../shared/bsm-button.component"; -export function NotificationItem({resolver, index, notification}: {resolver?: (value: NotificationResult|string) => void, index: number, notification: Notification}) { +export function NotificationItem({resolver, notification}: {resolver?: (value: NotificationResult|string) => void, notification: Notification}) { const renderImage = () => { if(notification.type === NotificationType.SUCCESS){ return BeatRunningImg; } diff --git a/src/renderer/components/notification/notification-overlay.component.tsx b/src/renderer/components/notification/notification-overlay.component.tsx index 4751c627..0795bd71 100644 --- a/src/renderer/components/notification/notification-overlay.component.tsx +++ b/src/renderer/components/notification/notification-overlay.component.tsx @@ -13,7 +13,7 @@ export function NotificationOverlay() { return ( - {notifications?.map((n, index) => )} + {notifications?.map(n => )} )