@@ -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 < {
@@ -57,22 +55,7 @@ export const WorkspacesRow: FC<{
57
55
/>
58
56
</ TableCell >
59
57
60
- < 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 >
75
- </ TableCell >
58
+ < TableCell > { displayTemplateName } </ TableCell >
76
59
77
60
< TableCell >
78
61
< LastUsed lastUsedAt = { workspace . last_used_at } />
@@ -102,18 +85,4 @@ const useStyles = makeStyles((theme) => ({
102
85
display : "flex" ,
103
86
paddingLeft : theme . spacing ( 2 ) ,
104
87
} ,
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
88
} ) )
0 commit comments