mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
remove useless props
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user