lukaskupczyk/react-hook-consent

View on GitHub
src/useConsentState.tsx

Summary

Maintainability
A
1 hr
Test Coverage
C
78%

Function useConsentState has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useConsentState(options: ConsentOptions) {
    const [state, setState] = useState<ConsentState>({
        consent: [],
        isBannerVisible: false,
        isDetailsVisible: false,
Severity: Minor
Found in src/useConsentState.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status