Added timeout option for notification component

This commit is contained in:
Alex
2022-08-26 10:01:47 -07:00
parent bef38c670c
commit 44ccb1eec1
3 changed files with 27 additions and 7 deletions

View File

@@ -51,7 +51,7 @@
onMount(() => {
setTimeout(() => {
notificationController.removeNotificationById(notificationInfo.id);
}, 3000);
}, notificationInfo.timeout);
});
</script>