fix: properly update issue and request counts in certain scenarios (#4051)

This commit is contained in:
Brandon Cohen
2025-02-25 17:14:52 -06:00
committed by OwsleyJr
parent db3e39e518
commit b8fa19c2b0
3 changed files with 30 additions and 8 deletions

View File

@@ -33,6 +33,8 @@ import { useIntl } from 'react-intl';
interface MobileMenuProps {
pendingRequestsCount: number;
openIssuesCount: number;
revalidateIssueCount: () => void;
revalidateRequestsCount: () => void;
}
interface MenuLink {
@@ -50,6 +52,8 @@ interface MenuLink {
const MobileMenu = ({
pendingRequestsCount,
openIssuesCount,
revalidateIssueCount,
revalidateRequestsCount,
}: MobileMenuProps) => {
const ref = useRef<HTMLDivElement>(null);
const intl = useIntl();
@@ -250,7 +254,7 @@ const MobileMenu = ({
router.pathname.match(link.activeRegExp)
? 'border-indigo-600 from-indigo-700 to-purple-700'
: 'border-indigo-500 from-indigo-600 to-purple-600'
} !px-1 leading-none`}
} !px-1 !py-[1px] leading-none`}
>
{pendingRequestsCount}
</Badge>