Merge pull request #2815 from omnivore-app/fix/archive-and-unarchive-tooltip

fix: showing unarchive as the tooltip when the item is in library and vice versa
This commit is contained in:
Hongbo Wu 2023-09-29 11:15:06 +08:00 committed by GitHub
commit 5cb94738de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'