Skip to content

Commit 8f2805a

Browse files
author
Laurie T. Malau
committed
Link to user profile
1 parent c8af44f commit 8f2805a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/dashboard/src/projects/NewProject.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ export default function NewProject() {
274274

275275
const showSearchInput = !!repoSearchFilter || filteredRepos.length > 0;
276276

277+
const userLink = (r: ProviderRepository) => {
278+
return `https://${new URL(r.cloneUrl).host}/${r.inUse?.userName}`
279+
}
280+
277281
const projectText = () => {
278282
return <p className="text-gray-500 text-center text-base">Projects allow you to manage prebuilds and workspaces for your repository. <a href="https://www.gitpod.io/docs/teams-and-projects" rel="noopener" className="gp-link">Learn more</a></p>
279283
}
@@ -324,7 +328,7 @@ export default function NewProject() {
324328
<button className="primary" onClick={() => setSelectedRepo(r)}>Select</button>
325329
) : (
326330
<p className="text-gray-500 font-medium">
327-
@{r.inUse.userName} already<br/>added this repo
331+
<a href={userLink(r)}>@{r.inUse.userName}</a> already<br/>added this repo
328332
</p>
329333
)}
330334
</div>

0 commit comments

Comments
 (0)