mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add sort by updated and recently read
This commit is contained in:
parent
b36e8a78d7
commit
f68507c069
1 changed files with 6 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ type LibraryFilter =
|
|||
| 'type:file'
|
||||
| 'type:highlights'
|
||||
| `saved:${string}`
|
||||
| `sort:updated`
|
||||
|
||||
// get last week's date
|
||||
const recentlySavedStartDate = new Date(
|
||||
|
|
@ -174,6 +175,11 @@ export function DropdownFilterMenu(
|
|||
title="Recently Saved"
|
||||
hideSeparator
|
||||
/>
|
||||
<DropdownOption
|
||||
onSelect={() => props.onFilterChange(`sort:updated`)}
|
||||
title="Recently Read"
|
||||
hideSeparator
|
||||
/>
|
||||
</Dropdown>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue