Skip to content

Commit 0ea121a

Browse files
colebemisjoshblack
andauthored
StateLabel: Use correct octicons for draft PR and closed PR (#4024)
* StateLabel: Use correct icons for draft PR and closed PR * Create tidy-coins-fix.md * Update StateLabel.tsx * test(vrt): update snapshots --------- Co-authored-by: Josh Black <[email protected]>
1 parent 0e9d841 commit 0ea121a

20 files changed

+9
-2
lines changed

.changeset/tidy-coins-fix.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
StateLabel: Use correct octicons for `draft` and `pullClosed` states
Loading
Loading

src/StateLabel/StateLabel.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import {
22
GitMergeIcon,
33
GitPullRequestIcon,
4+
GitPullRequestClosedIcon,
5+
GitPullRequestDraftIcon,
46
IssueClosedIcon,
57
SkipIcon,
68
IssueDraftIcon,
@@ -22,9 +24,9 @@ const octiconMap = {
2224
pullOpened: GitPullRequestIcon,
2325
issueClosed: IssueClosedIcon,
2426
issueClosedNotPlanned: SkipIcon,
25-
pullClosed: GitPullRequestIcon,
27+
pullClosed: GitPullRequestClosedIcon,
2628
pullMerged: GitMergeIcon,
27-
draft: GitPullRequestIcon,
29+
draft: GitPullRequestDraftIcon,
2830
issueDraft: IssueDraftIcon,
2931
pullQueued: GitMergeQueueIcon,
3032
unavailable: AlertIcon,

0 commit comments

Comments
 (0)