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 = {
account: 'authors',
};
let toast = showToast(
`Showing ${filterCategoryText[selectedFilterCategory] || 'all posts'}${
authorUsername ? ` by @${authorUsername}` : ''
}, ${sortByText[sortBy][sortOrderIndex]} first${
let toast = showToast({
duration: 5_000, // 5 seconds
text: `Showing ${
filterCategoryText[selectedFilterCategory] || 'all posts'
}${authorUsername ? ` by @${authorUsername}` : ''}, ${
sortByText[sortBy][sortOrderIndex]
} first${
!!groupBy
? `, grouped by ${groupBy === 'account' ? groupByText[groupBy] : ''}`
: ''
}`,
);
});
return () => {
toast?.hideToast?.();
};