templates editor #62

This commit is contained in:
2023-10-30 11:48:10 +01:00
parent cd5c210eac
commit 19f9b10844
24 changed files with 798 additions and 141 deletions

View File

@@ -10,14 +10,13 @@ const Toaster: React.FC = () => {
useEffect(() => {
if (toasts.length > 0) {
const closer = setInterval(() => {
setToasts(t => t.map(t => ({ ...t, open: deletePredicate(t) })))
}, 2000)
}, 900)
const cleaner = setInterval(() => {
setToasts(t => t.filter(deletePredicate))
}, 1000)
}, 2005)
return () => {
clearInterval(closer)