Skip to content

Commit 9c603ea

Browse files
authored
Merge pull request #78 from beNative/codex/remove-updates-available-text-from-icon
Refine updates indicator tooltip
2 parents 85d5db0 + a150744 commit 9c603ea

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

components/StatusIndicator.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,19 @@ export const StatusIndicator: React.FC<StatusIndicatorProps> = ({ status }) => {
4242
const aheadTooltip = useTooltip(`${branchInfo?.ahead} commits ahead`);
4343
const behindTooltip = useTooltip(`${branchInfo?.behind} commits behind`);
4444
const trackingTooltip = useTooltip(`Tracking: ${branchInfo?.tracking}`);
45-
const updatesTooltip = useTooltip('Updates available to pull/update');
45+
const updatesTooltip = useTooltip(
46+
'Remote has new commits for this repository. Fetch or pull to sync your local branch.'
47+
);
4648

4749
return (
4850
<div className="flex items-center justify-end flex-wrap gap-x-3 gap-y-1 text-xs">
49-
{hasUpdates && (
51+
{hasUpdates && (
5052
<span
5153
// @ts-ignore
5254
{...updatesTooltip}
5355
className="flex items-center text-cyan-600 dark:text-cyan-400 font-semibold"
5456
>
55-
<CloudArrowDownIcon className="h-4 w-4 mr-1" />
56-
<span>Updates Available</span>
57+
<CloudArrowDownIcon className="h-4 w-4" />
5758
</span>
5859
)}
5960
{branchInfo && (branchInfo.ahead > 0 || branchInfo.behind > 0) && (

0 commit comments

Comments
 (0)