mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Mention highlights be deleted too
This commit is contained in:
parent
a2f31c943f
commit
37286f8d5e
1 changed files with 20 additions and 4 deletions
|
|
@ -346,8 +346,22 @@ export function HomeFeedContainer(): JSX.Element {
|
|||
}
|
||||
|
||||
const modalTargetItem = useMemo(() => {
|
||||
return (labelsTarget || snoozeTarget || shareTarget || linkToEdit || linkToRemove || linkToUnsubscribe)
|
||||
}, [labelsTarget, snoozeTarget, shareTarget, linkToEdit, linkToRemove, linkToUnsubscribe])
|
||||
return (
|
||||
labelsTarget ||
|
||||
snoozeTarget ||
|
||||
shareTarget ||
|
||||
linkToEdit ||
|
||||
linkToRemove ||
|
||||
linkToUnsubscribe
|
||||
)
|
||||
}, [
|
||||
labelsTarget,
|
||||
snoozeTarget,
|
||||
shareTarget,
|
||||
linkToEdit,
|
||||
linkToRemove,
|
||||
linkToUnsubscribe,
|
||||
])
|
||||
|
||||
useKeyboardShortcuts(
|
||||
libraryListCommands((action) => {
|
||||
|
|
@ -638,7 +652,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
|
|||
const [showRemoveLinkConfirmation, setShowRemoveLinkConfirmation] =
|
||||
useState(false)
|
||||
const [showUnsubscribeConfirmation, setShowUnsubscribeConfirmation] =
|
||||
useState(false)
|
||||
useState(false)
|
||||
|
||||
const updateLayout = useCallback(
|
||||
async (newLayout: LayoutType) => {
|
||||
|
|
@ -975,7 +989,9 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
|
|||
)}
|
||||
{showRemoveLinkConfirmation && (
|
||||
<ConfirmationModal
|
||||
message={'Are you sure you want to remove this link?'}
|
||||
message={
|
||||
'Are you sure you want to remove this link? All your highlights will be deleted.'
|
||||
}
|
||||
onAccept={removeItem}
|
||||
onOpenChange={() => setShowRemoveLinkConfirmation(false)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue