apps/comments-ui/src/components/PopupBox.tsx
Function PopupBox
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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