Mirror search mode

This commit is contained in:
Manav Rathi
2024-09-24 19:27:45 +05:30
parent f6f81c4eeb
commit e53312304a

View File

@@ -70,12 +70,16 @@ const SelectedFileOptions = ({
isInHiddenSection,
}: Props) => {
const { setDialogMessage } = useContext(AppContext);
const peopleMode = barMode == "people";
const addToCollection = () =>
setCollectionSelectorAttributes({
callback: handleCollectionOps(COLLECTION_OPS_TYPE.ADD),
showNextModal: showCreateCollectionModal(COLLECTION_OPS_TYPE.ADD),
intent: CollectionSelectorIntent.add,
fromCollection: !isInSearchMode ? activeCollectionID : undefined,
fromCollection:
!isInSearchMode && !peopleMode ? activeCollectionID : undefined,
});
const trashHandler = () =>
@@ -143,7 +147,8 @@ const SelectedFileOptions = ({
callback: handleCollectionOps(COLLECTION_OPS_TYPE.MOVE),
showNextModal: showCreateCollectionModal(COLLECTION_OPS_TYPE.MOVE),
intent: CollectionSelectorIntent.move,
fromCollection: !isInSearchMode ? activeCollectionID : undefined,
fromCollection:
!isInSearchMode && !peopleMode ? activeCollectionID : undefined,
});
};
@@ -157,8 +162,6 @@ const SelectedFileOptions = ({
});
};
const peopleMode = barMode == "people";
return (
<SelectionBar>
<FluidContainer>