fix: showing unarchive as the tooltip when the item is in library and vice versa

This commit is contained in:
Hongbo Wu 2023-09-28 21:50:39 +08:00
parent cd8f47acad
commit a3beb48237

View file

@ -75,7 +75,7 @@ export const LibraryHoverActions = (props: LibraryHoverActionsProps) => {
/>
</Button>
<Button
title={props.item.isArchived ? 'Archive (e)' : 'Unarchive (e)'}
title={props.item.isArchived ? 'Unarchive (e)' : 'Archive (e)'}
style="hoverActionIcon"
onClick={(event) => {
const action = props.item.isArchived ? 'unarchive' : 'archive'