fix: Enforce emoji flags on macOS
This commit is contained in:
@@ -5,6 +5,7 @@ import capitalize from "lodash/capitalize";
|
|||||||
import sortBy from "lodash/sortBy";
|
import sortBy from "lodash/sortBy";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { emojiMartToGemoji, snakeCase } from "@shared/editor/lib/emoji";
|
import { emojiMartToGemoji, snakeCase } from "@shared/editor/lib/emoji";
|
||||||
|
import { isMac } from "@shared/utils/browser";
|
||||||
import EmojiMenuItem from "./EmojiMenuItem";
|
import EmojiMenuItem from "./EmojiMenuItem";
|
||||||
import SuggestionsMenu, {
|
import SuggestionsMenu, {
|
||||||
Props as SuggestionsMenuProps,
|
Props as SuggestionsMenuProps,
|
||||||
@@ -18,7 +19,11 @@ type Emoji = {
|
|||||||
attrs: { markup: string; "data-name": string };
|
attrs: { markup: string; "data-name": string };
|
||||||
};
|
};
|
||||||
|
|
||||||
void init({ data });
|
init({
|
||||||
|
data,
|
||||||
|
noCountryFlags: isMac() ? false : undefined,
|
||||||
|
});
|
||||||
|
|
||||||
let searcher: FuzzySearch<TEmoji>;
|
let searcher: FuzzySearch<TEmoji>;
|
||||||
|
|
||||||
type Props = Omit<
|
type Props = Omit<
|
||||||
|
|||||||
Reference in New Issue
Block a user