remove useless props

This commit is contained in:
MathieuG-P
2022-07-07 23:57:29 +02:00
parent 281f88deb1
commit 9ba97497b1
2 changed files with 2 additions and 2 deletions
@@ -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; }
@@ -13,7 +13,7 @@ export function NotificationOverlay() {
return (
<motion.ul className="absolute h-full w-0 top-0 right-0 z-40 bg-red-500 pt-10">
<AnimatePresence>
{notifications?.map((n, index) => <NotificationItem key={n.id} index={index} resolver={n.resolver} notification={n.notification}/>)}
{notifications?.map(n => <NotificationItem key={n.id} resolver={n.resolver} notification={n.notification}/>)}
</AnimatePresence>
</motion.ul>
)