Skip to content

Commit 93805b6

Browse files
committed
chore(UI): remove template link from workspaces page row
1 parent 665b84d commit 93805b6

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

site/src/components/WorkspacesTable/WorkspacesRow.tsx

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"
55
import { AvatarData } from "components/AvatarData/AvatarData"
66
import { WorkspaceStatusBadge } from "components/WorkspaceStatusBadge/WorkspaceStatusBadge"
77
import { FC } from "react"
8-
import { useNavigate, Link as RouterLink } from "react-router-dom"
8+
import { useNavigate } from "react-router-dom"
99
import { getDisplayWorkspaceTemplateName } from "util/workspace"
1010
import { LastUsed } from "../LastUsed/LastUsed"
1111
import { Workspace } from "api/typesGenerated"
1212
import { OutdatedHelpTooltip } from "components/Tooltips/OutdatedHelpTooltip"
1313
import { Avatar } from "components/Avatar/Avatar"
1414
import { Stack } from "components/Stack/Stack"
15-
import TemplateLinkIcon from "@material-ui/icons/OpenInNewOutlined"
16-
import Link from "@material-ui/core/Link"
1715
import { useClickableTableRow } from "hooks/useClickableTableRow"
1816

1917
export const WorkspacesRow: FC<{
@@ -58,20 +56,9 @@ export const WorkspacesRow: FC<{
5856
</TableCell>
5957

6058
<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>
7562
</TableCell>
7663

7764
<TableCell>
@@ -102,18 +89,4 @@ const useStyles = makeStyles((theme) => ({
10289
display: "flex",
10390
paddingLeft: theme.spacing(2),
10491
},
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-
},
11992
}))

0 commit comments

Comments
 (0)