Delay showing "status posted" toast

This commit is contained in:
Lim Chee Aun 2022-12-28 18:05:22 +08:00
parent 44617cffca
commit 02c464a139

View file

@ -384,6 +384,7 @@ export function App() {
states.showCompose = false;
if (newStatus) {
states.reloadStatusPage++;
setTimeout(() => {
const toast = Toastify({
text: 'Status posted. Check it out.',
duration: 10_000, // 10 seconds
@ -396,6 +397,7 @@ export function App() {
},
});
toast.showToast();
}, 1000);
}
}}
/>