RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/root/hooks/useEscapeKeyStroke.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useEscapeKeyStroke has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useEscapeKeyStroke = () => {
    const dispatchToastMessage = useToastMessageDispatch();
    const t = useTranslation();

    const clearUnreadAllMessagesMutation = useClearUnreadAllMessagesMutation({
Severity: Minor
Found in apps/meteor/client/views/root/hooks/useEscapeKeyStroke.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status