1
0
Fork 0

Make toast stay longer, due to longer text

This commit is contained in:
Lim Chee Aun 2024-03-01 13:20:34 +08:00
parent b479fa1f35
commit 94dcd1606a

View file

@ -493,15 +493,18 @@ function Catchup() {
const groupByText = { const groupByText = {
account: 'authors', account: 'authors',
}; };
let toast = showToast( let toast = showToast({
`Showing ${filterCategoryText[selectedFilterCategory] || 'all posts'}${ duration: 5_000, // 5 seconds
authorUsername ? ` by @${authorUsername}` : '' text: `Showing ${
}, ${sortByText[sortBy][sortOrderIndex]} first${ filterCategoryText[selectedFilterCategory] || 'all posts'
}${authorUsername ? ` by @${authorUsername}` : ''}, ${
sortByText[sortBy][sortOrderIndex]
} first${
!!groupBy !!groupBy
? `, grouped by ${groupBy === 'account' ? groupByText[groupBy] : ''}` ? `, grouped by ${groupBy === 'account' ? groupByText[groupBy] : ''}`
: '' : ''
}`, }`,
); });
return () => { return () => {
toast?.hideToast?.(); toast?.hideToast?.();
}; };