TryGhost/Ghost

View on GitHub
apps/comments-ui/src/components/PopupBox.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function PopupBox has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const PopupBox: React.FC<Props> = () => {
    const {popup} = useAppContext();

    // To make sure we can properly animate a popup that goes away, we keep a state of the last visible popup
    // This way, when the popup context is set to null, we still can show the popup while we transition it away
Severity: Minor
Found in apps/comments-ui/src/components/PopupBox.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status