Skip to content

Commit f404e1b

Browse files
committed
Show current branch name in dropdown tooltip
1 parent 511b89a commit f404e1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/RepositoryCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const BranchSwitcher: React.FC<{
9999

100100
const branchDropdownTooltip = useTooltip(
101101
branchInfo
102-
? (hasOptions ? 'Switch branches' : 'No other branches available')
102+
? (currentBranch ? `Current branch: ${currentBranch}` : 'Branch name unavailable')
103103
: 'Branch information unavailable'
104104
);
105105
const branchSearchTooltip = useTooltip(

0 commit comments

Comments
 (0)