mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-06 04:16:54 +00:00
use 120 max line length for both server and client code (was 100 and 140)
This commit is contained in:
@@ -14,7 +14,9 @@ export function MarkAllAsReadConfirmationDialog() {
|
||||
const sourceLabel = useAppSelector(state => state.entries.sourceLabel)
|
||||
const entriesTimestamp = useAppSelector(state => state.entries.timestamp) ?? Date.now()
|
||||
const search = useAppSelector(state => state.entries.search)
|
||||
const markAllAsReadNavigateToNextUnread = useAppSelector(state => state.user.settings?.markAllAsReadNavigateToNextUnread)
|
||||
const markAllAsReadNavigateToNextUnread = useAppSelector(
|
||||
state => state.user.settings?.markAllAsReadNavigateToNextUnread
|
||||
)
|
||||
const dispatch = useAppDispatch()
|
||||
|
||||
const onConfirm = async () => {
|
||||
@@ -33,7 +35,8 @@ export function MarkAllAsReadConfirmationDialog() {
|
||||
)
|
||||
|
||||
const isAllCategorySelected = source.type === "category" && source.id === Constants.categories.all.id
|
||||
if (markAllAsReadNavigateToNextUnread && !isAllCategorySelected) await dispatch(selectNextUnreadTreeItem({ direction: "forward" }))
|
||||
if (markAllAsReadNavigateToNextUnread && !isAllCategorySelected)
|
||||
await dispatch(selectNextUnreadTreeItem({ direction: "forward" }))
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -51,7 +54,8 @@ export function MarkAllAsReadConfirmationDialog() {
|
||||
)}
|
||||
{threshold > 0 && (
|
||||
<Trans>
|
||||
Are you sure you want to mark entries older than {threshold} days of <Code>{sourceLabel}</Code> as read?
|
||||
Are you sure you want to mark entries older than {threshold} days of{" "}
|
||||
<Code>{sourceLabel}</Code> as read?
|
||||
</Trans>
|
||||
)}
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user