@@ -5,15 +5,13 @@ import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"
5
5
import { AvatarData } from "components/AvatarData/AvatarData"
6
6
import { WorkspaceStatusBadge } from "components/WorkspaceStatusBadge/WorkspaceStatusBadge"
7
7
import { FC } from "react"
8
- import { useNavigate , Link as RouterLink } from "react-router-dom"
8
+ import { useNavigate } from "react-router-dom"
9
9
import { getDisplayWorkspaceTemplateName } from "util/workspace"
10
10
import { LastUsed } from "../LastUsed/LastUsed"
11
11
import { Workspace } from "api/typesGenerated"
12
12
import { OutdatedHelpTooltip } from "components/Tooltips/OutdatedHelpTooltip"
13
13
import { Avatar } from "components/Avatar/Avatar"
14
14
import { Stack } from "components/Stack/Stack"
15
- import TemplateLinkIcon from "@material-ui/icons/OpenInNewOutlined"
16
- import Link from "@material-ui/core/Link"
17
15
import { useClickableTableRow } from "hooks/useClickableTableRow"
18
16
19
17
export const WorkspacesRow : FC < {
@@ -58,20 +56,9 @@ export const WorkspacesRow: FC<{
58
56
</ TableCell >
59
57
60
58
< TableCell >
61
- < Link
62
- component = { RouterLink }
63
- to = { `/templates/${ workspace . template_name } ` }
64
- className = { styles . templateLink }
65
- title = { `Go to ${ displayTemplateName } page` }
66
- onClick = { ( e ) => {
67
- e . stopPropagation ( )
68
- } }
69
- >
70
- < Stack direction = "row" alignItems = "center" spacing = { 1 } >
71
- < TemplateLinkIcon className = { styles . templateLinkIcon } />
72
- < span > { displayTemplateName } </ span >
73
- </ Stack >
74
- </ Link >
59
+ < Stack direction = "row" alignItems = "center" spacing = { 1 } >
60
+ < span > { displayTemplateName } </ span >
61
+ </ Stack >
75
62
</ TableCell >
76
63
77
64
< TableCell >
@@ -102,18 +89,4 @@ const useStyles = makeStyles((theme) => ({
102
89
display : "flex" ,
103
90
paddingLeft : theme . spacing ( 2 ) ,
104
91
} ,
105
-
106
- templateLink : {
107
- color : theme . palette . text . secondary ,
108
-
109
- "&:hover" : {
110
- color : theme . palette . text . primary ,
111
- textDecoration : "none" ,
112
- } ,
113
- } ,
114
-
115
- templateLinkIcon : {
116
- width : theme . spacing ( 1.5 ) ,
117
- height : theme . spacing ( 1.5 ) ,
118
- } ,
119
92
} ) )
0 commit comments