mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🆙 Bug fixed in localstorage
This commit is contained in:
@@ -7,9 +7,13 @@ export interface MentionSuggestion
|
||||
{
|
||||
key: string;
|
||||
kind: MentionSuggestionKind;
|
||||
/** Display name shown in the row (e.g. "DuckieTM" or "all"). */
|
||||
name: string;
|
||||
/** Token that's actually inserted into the chat input (without the @). */
|
||||
insertToken: string;
|
||||
/** Figure string for the avatar tile - only set for 'user' rows. */
|
||||
figure?: string;
|
||||
/** Optional sub-label, e.g. for "Staff Chat". */
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -21,6 +25,11 @@ interface ChatInputMentionSelectorViewProps
|
||||
onHover: (index: number) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
* @-autocomplete popover. Suggestion list comes pre-filtered from the parent:
|
||||
* real users (RoomObjectUserType.USER = 1) only, never pets / bots / rentable
|
||||
* bots / monster plants, plus the configured broadcast aliases.
|
||||
*/
|
||||
export const ChatInputMentionSelectorView: FC<ChatInputMentionSelectorViewProps> = props =>
|
||||
{
|
||||
const { suggestions = [], selectedIndex = 0, onSelect = null, onHover = null } = props;
|
||||
|
||||
Reference in New Issue
Block a user