Skip to content

Commit fe991b8

Browse files
jankeromnesroboquat
authored andcommitted
[dashboard] Accelerate links from the Prebuilds page
1 parent 1f47356 commit fe991b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/dashboard/src/projects/Prebuilds.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { getGitpodService } from "../service/service";
2020
import { TeamsContext, getCurrentTeam } from "../teams/teams-context";
2121
import { ContextMenuEntry } from "../components/ContextMenu";
2222
import { shortCommitMessage } from "./render-utils";
23+
import { Link } from "react-router-dom";
2324

2425
export default function () {
2526
const location = useLocation();
@@ -170,13 +171,13 @@ export default function () {
170171
</Item>
171172
{prebuilds.filter(filter).sort(prebuildSorter).map((p, index) => <Item key={`prebuild-${p.info.id}`} className="grid grid-cols-3">
172173
<ItemField className="flex items-center">
173-
<a href={`/${!!team ? 't/'+team.slug : 'projects'}/${projectName}/${p.info.id}`} className="cursor-pointer">
174+
<Link to={`/${!!team ? 't/'+team.slug : 'projects'}/${projectName}/${p.info.id}`} className="cursor-pointer">
174175
<div className="text-base text-gray-900 dark:text-gray-50 font-medium uppercase mb-1">
175176
<div className="inline-block align-text-bottom mr-2 w-4 h-4">{prebuildStatusIcon(p)}</div>
176177
{prebuildStatusLabel(p)}
177178
</div>
178179
<p>{p.info.startedByAvatar && <img className="rounded-full w-4 h-4 inline-block align-text-bottom mr-2" src={p.info.startedByAvatar || ''} alt={p.info.startedBy} />}Triggered {formatDate(p.info.startedAt)}</p>
179-
</a>
180+
</Link>
180181
</ItemField>
181182
<ItemField className="flex items-center">
182183
<div>

0 commit comments

Comments
 (0)