Skip to content

Commit 3b52d4f

Browse files
authored
chore(UI): remove template link from workspaces page row (#6882)
* chore(UI): remove template link from workspaces page row * remove stack and span as per PR comment
1 parent b5f5740 commit 3b52d4f

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

site/src/components/WorkspacesTable/WorkspacesRow.tsx

Lines changed: 2 additions & 33 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<{
@@ -57,22 +55,7 @@ export const WorkspacesRow: FC<{
5755
/>
5856
</TableCell>
5957

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>
7659

7760
<TableCell>
7861
<LastUsed lastUsedAt={workspace.last_used_at} />
@@ -102,18 +85,4 @@ const useStyles = makeStyles((theme) => ({
10285
display: "flex",
10386
paddingLeft: theme.spacing(2),
10487
},
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-
},
11988
}))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy