File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
web/apps/labelstudio/src/pages/Home Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { useState } from "react";
99import { CreateProject } from "../CreateProject/CreateProject" ;
1010import { InviteLink } from "../Organization/PeoplePage/InviteLink" ;
1111import { Heading , Sub } from "@humansignal/typography" ;
12+ import { Link } from "react-router-dom" ;
1213
1314const PROJECTS_TO_SHOW = 10 ;
1415
@@ -191,7 +192,11 @@ function ProjectSimpleCard({
191192 const color = project . color && project . color !== white ? project . color : "#E1DED5" ;
192193
193194 return (
194- < a href = { `/projects/${ project . id } ` } className = "block even:bg-lsNeutralSurface rounded-sm overflow-hidden" >
195+ < Link
196+ to = { `/projects/${ project . id } ` }
197+ className = "block even:bg-neutral-surface rounded-sm overflow-hidden"
198+ data-external
199+ >
195200 < div
196201 className = "grid grid-cols-[minmax(0,1fr)_150px] p-2 py-3 items-center border-l-[3px]"
197202 style = { { borderLeftColor : color } }
@@ -206,6 +211,6 @@ function ProjectSimpleCard({
206211 < div className = "bg-lsPositiveSurfaceHover h-full" style = { { maxWidth : `${ progress } %` } } />
207212 </ div >
208213 </ div >
209- </ a >
214+ </ Link >
210215 ) ;
211216}
You can’t perform that action at this time.
0 commit comments