RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/hooks/useFileUploadAction.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useFileUploadAction has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useFileUploadAction = (disabled: boolean): GenericMenuItemProps => {
    const t = useTranslation();
    const fileUploadEnabled = useSetting<boolean>('FileUpload_Enabled');
    const fileInputRef = useFileInput(fileInputProps);
    const chat = useChat();

    There are no issues that match your filters.

    Category
    Status