Skip to content

Commit be4c4c7

Browse files
committed
fix link component when updating issue
1 parent a47064d commit be4c4c7

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

ui/src/apps/issue-write/App.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
TextInput,
77
Button,
88
Flash,
9-
Link,
109
Spinner,
1110
FormControl,
1211
CounterLabel,
@@ -135,17 +134,19 @@ function SuccessView({
135134
<IssueOpenedIcon size={16} />
136135
</Box>
137136
<Box sx={{ minWidth: 0 }}>
138-
<Link
137+
<a
139138
href={issueUrl}
140139
target="_blank"
141140
rel="noopener noreferrer"
142-
sx={{
143-
fontWeight: "semibold",
144-
fontSize: 1,
141+
style={{
142+
fontWeight: 600,
143+
fontSize: "14px",
145144
display: "block",
146145
overflow: "hidden",
147146
textOverflow: "ellipsis",
148147
whiteSpace: "nowrap",
148+
color: "var(--fgColor-accent, var(--color-accent-fg))",
149+
textDecoration: "none",
149150
}}
150151
>
151152
{issue.title || submittedTitle}
@@ -154,7 +155,7 @@ function SuccessView({
154155
#{issue.number}
155156
</Text>
156157
)}
157-
</Link>
158+
</a>
158159
<Text sx={{ color: "fg.muted", fontSize: 0 }}>
159160
{owner}/{repo}
160161
</Text>

ui/src/apps/pr-write/App.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
TextInput,
77
Button,
88
Flash,
9-
Link,
109
Spinner,
1110
FormControl,
1211
ActionMenu,
@@ -102,17 +101,19 @@ function SuccessView({
102101
<GitPullRequestIcon size={16} />
103102
</Box>
104103
<Box sx={{ minWidth: 0 }}>
105-
<Link
104+
<a
106105
href={prUrl}
107106
target="_blank"
108107
rel="noopener noreferrer"
109-
sx={{
110-
fontWeight: "semibold",
111-
fontSize: 1,
108+
style={{
109+
fontWeight: 600,
110+
fontSize: "14px",
112111
display: "block",
113112
overflow: "hidden",
114113
textOverflow: "ellipsis",
115114
whiteSpace: "nowrap",
115+
color: "var(--fgColor-accent, var(--color-accent-fg))",
116+
textDecoration: "none",
116117
}}
117118
>
118119
{pr.title || submittedTitle}
@@ -121,7 +122,7 @@ function SuccessView({
121122
#{pr.number}
122123
</Text>
123124
)}
124-
</Link>
125+
</a>
125126
<Text sx={{ color: "fg.muted", fontSize: 0 }}>
126127
{owner}/{repo}
127128
</Text>

0 commit comments

Comments
 (0)