Various search UI improvements
This commit is contained in:
parent
630394d91d
commit
a9cb621eb6
25 changed files with 835 additions and 577 deletions
|
@ -13,6 +13,8 @@ import { missingCaseError } from '../../util/missingCaseError';
|
|||
import { ComposerStep, OneTimeModalState } from '../ducks/conversations';
|
||||
import {
|
||||
getIsSearchingInAConversation,
|
||||
getQuery,
|
||||
getSearchConversation,
|
||||
getSearchResults,
|
||||
getStartSearchCounter,
|
||||
isSearching,
|
||||
|
@ -91,9 +93,14 @@ const getModeSpecificProps = (
|
|||
case undefined:
|
||||
if (getShowArchived(state)) {
|
||||
const { archivedConversations } = getLeftPaneLists(state);
|
||||
const searchConversation = getSearchConversation(state);
|
||||
const searchTerm = getQuery(state);
|
||||
return {
|
||||
mode: LeftPaneMode.Archive,
|
||||
archivedConversations,
|
||||
searchConversation,
|
||||
searchTerm,
|
||||
...(searchConversation && searchTerm ? getSearchResults(state) : {}),
|
||||
};
|
||||
}
|
||||
if (isSearching(state)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue