mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
fix(search): respect scope in channel suggestions
This commit is contained in:
1 parent
c504b68354
commit
5015452280
6 files changed
+155
-50
No files matched your search
@@ -9,14 +9,7 @@ import {Scroller} from '@app/features/ui/components/Scroller';
|
||||
import {msg} from '@lingui/core/macro';
|
||||
import {useLingui} from '@lingui/react/macro';
|
||||
import type {IconProps} from '@phosphor-icons/react';
|
||||
import {
|
||||
ChatCenteredDotsIcon,
|
||||
CheckIcon,
|
||||
EnvelopeSimpleIcon,
|
||||
GlobeIcon,
|
||||
HashIcon,
|
||||
UsersIcon,
|
||||
} from '@phosphor-icons/react';
|
||||
import {ChatCenteredDotsIcon, ChatCircleIcon, CheckIcon, GlobeIcon, HashIcon, UsersIcon} from '@phosphor-icons/react';
|
||||
import {clsx} from 'clsx';
|
||||
import type React from 'react';
|
||||
|
||||
@@ -26,7 +19,7 @@ const SEARCH_IN_DESCRIPTOR = msg({
|
||||
});
|
||||
const SCOPE_ICON_COMPONENTS: Record<MessageSearchScope, React.ComponentType<IconProps>> = {
|
||||
current: HashIcon,
|
||||
all_dms: EnvelopeSimpleIcon,
|
||||
all_dms: ChatCircleIcon,
|
||||
open_dms: ChatCenteredDotsIcon,
|
||||
all_guilds: GlobeIcon,
|
||||
all: UsersIcon,
|
||||
|
||||
Reference in new issue
Block a user