RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/hooks/useSingleFileInput.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useSingleFileInput has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useSingleFileInput = (
    onSetFile: (file: FileList[number], formData: FormData) => void,
    fileType = 'image/*',
    fileField = 'image',
): [onClick: () => void, reset: () => void] => {
Severity: Minor
Found in apps/meteor/client/hooks/useSingleFileInput.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status