fix: refine GitHub rate limit card (#2668)

This commit is contained in:
Carlos Florêncio
2026-08-15 12:42:17 +01:00
committed by GitHub
parent 540834bf64
commit dfa100df13
6 changed files with 28 additions and 3 deletions
@@ -19,12 +19,14 @@ export function GitHubAccessHelp({
title,
description,
content,
icon,
onOpen,
}: {
label: string;
title: string;
description: string;
content?: ReactNode;
icon?: ReactNode;
onOpen?: () => void;
}) {
const usesTouchDrawer = useTouchDrawer();
@@ -43,7 +45,7 @@ export function GitHubAccessHelp({
aria-expanded={usesTouchDrawer ? open : undefined}
aria-label={label}
>
<IconInfoCircle className="h-4 w-4" />
{icon ?? <IconInfoCircle className="h-4 w-4" />}
</Button>
);
const trigger = usesTouchDrawer ? (