mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Remove old emoji and sticker pickers
This commit is contained in:
@@ -7,7 +7,6 @@ import { useRestoreFocus } from '../hooks/useRestoreFocus.js';
|
||||
import type { LocalizerType } from '../types/Util.js';
|
||||
|
||||
export type Props = {
|
||||
hasInstalledStickers: boolean;
|
||||
platform: string;
|
||||
readonly close: () => unknown;
|
||||
readonly i18n: LocalizerType;
|
||||
@@ -363,7 +362,7 @@ function getCallingShortcuts(i18n: LocalizerType): Array<ShortcutType> {
|
||||
}
|
||||
|
||||
export function ShortcutGuide(props: Props): JSX.Element {
|
||||
const { i18n, close, hasInstalledStickers, platform } = props;
|
||||
const { i18n, close, platform } = props;
|
||||
const isMacOS = platform === 'darwin';
|
||||
|
||||
// Restore focus on teardown
|
||||
@@ -395,13 +394,6 @@ export function ShortcutGuide(props: Props): JSX.Element {
|
||||
</div>
|
||||
<div className="module-shortcut-guide__section-list">
|
||||
{getNavigationShortcuts(i18n).map((shortcut, index) => {
|
||||
if (
|
||||
!hasInstalledStickers &&
|
||||
shortcut.description === 'Keyboard--open-sticker-chooser'
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return renderShortcut(shortcut, index, isMacOS, i18n);
|
||||
})}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user