Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Jul 22, 2024
1 parent e18fadb commit 7e6a63e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions apps/meteor/client/views/room/composer/messageBox/MessageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ import {
} from '@rocket.chat/ui-composer';
import { useTranslation, useUserPreference, useLayout, useSetting } from '@rocket.chat/ui-contexts';
import { useMutation } from '@tanstack/react-query';
import type {
ReactElement,
MouseEventHandler,
FormEvent,
ClipboardEventHandler,
MouseEvent,
} from 'react';
import type { ReactElement, MouseEventHandler, FormEvent, ClipboardEventHandler, MouseEvent } from 'react';
import React, { memo, useRef, useReducer, useCallback } from 'react';
import { Trans } from 'react-i18next';
import { useSubscription } from 'use-subscription';
Expand Down Expand Up @@ -58,11 +52,7 @@ const reducer = (_: unknown, event: FormEvent<HTMLInputElement>): boolean => {
return Boolean(target.value.trim());
};

const handleFormattingShortcut = (
event: KeyboardEvent,
formattingButtons: FormattingButton[],
composer: ComposerAPI,
) => {
const handleFormattingShortcut = (event: KeyboardEvent, formattingButtons: FormattingButton[], composer: ComposerAPI) => {
const isMacOS = navigator.platform.indexOf('Mac') !== -1;
const isCmdOrCtrlPressed = (isMacOS && event.metaKey) || (!isMacOS && event.ctrlKey);

Expand Down Expand Up @@ -362,7 +352,6 @@ const MessageBox = ({
}
node.addEventListener('keydown', (e: KeyboardEvent) => {
handler(e);
return;
});
},
[handler],
Expand Down

0 comments on commit 7e6a63e

Please sign in to comment.