feat(collections/list): enable "Show archived notes" checkmark in collections

This commit is contained in:
Elian Doran 2025-11-13 10:24:57 +02:00
parent e51daad5da
commit 454310c3e4
No known key found for this signature in database

View File

@ -59,13 +59,12 @@ function CollectionTypeSwitcher({ viewType, setViewType }: { viewType: string, s
function BookProperties({ viewType, note, properties }: { viewType: ViewTypeOptions, note: FNote, properties: BookProperty[] }) { function BookProperties({ viewType, note, properties }: { viewType: ViewTypeOptions, note: FNote, properties: BookProperty[] }) {
return ( return (
<> <>
{properties.map(property => ( {properties.map(property => (
<div className={`type-${property}`}> <div className={`type-${property}`}>
{mapPropertyView({ note, property })} {mapPropertyView({ note, property })}
</div> </div>
))} ))}
{viewType !== "list" && viewType !== "grid" && (
<CheckboxPropertyView <CheckboxPropertyView
note={note} property={{ note={note} property={{
bindToLabel: "includeArchived", bindToLabel: "includeArchived",
@ -73,7 +72,6 @@ function BookProperties({ viewType, note, properties }: { viewType: ViewTypeOpti
type: "checkbox" type: "checkbox"
}} }}
/> />
)}
</> </>
) )
} }