refactor: Change type to ensure notifs within state are Required<>

This commit is contained in:
asharonbaltazar
2022-12-07 11:58:17 -05:00
parent 251426b559
commit 9098bdc751
3 changed files with 6 additions and 4 deletions
@@ -2,7 +2,7 @@ import Notification from "./Notification";
import { Notification as NotificationType } from "./NotificationProvider";
interface NoticationsProps {
notifications: NotificationType[];
notifications: Required<NotificationType>[];
clearNotification: (text: string) => void;
}