Delay showing "status posted" toast
This commit is contained in:
parent
44617cffca
commit
02c464a139
1 changed files with 14 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue