upd: realtime

deskripsi:
- coba realtime
- api version

No Issues
This commit is contained in:
amel
2024-10-01 11:44:51 +08:00
parent 01610a37d5
commit bde7a136e2
5 changed files with 44 additions and 11 deletions

View File

@@ -13,14 +13,14 @@ export default function NotificationCustome({ onClose, title, desc, onClick }: {
useShallowEffect(() => {
const timer = setTimeout(() => {
setOpened(true);
}, 2000);
},50);
return () => clearTimeout(timer);
}, []);
useShallowEffect(() => {
const timer = setTimeout(() => {
setOpened(false)
}, 6000);
}, 2000);
return () => clearTimeout(timer);
}, []);
@@ -42,7 +42,7 @@ export default function NotificationCustome({ onClose, title, desc, onClick }: {
...state,
zIndex: 999,
position: 'fixed',
top: 50,
top: 10,
display: 'flex',
margin: 20,
justifyContent: 'center',