Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b52d4f

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 parentb5f5740 commit3b52d4f

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,LinkasRouterLink}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-
importTemplateLinkIconfrom"@material-ui/icons/OpenInNewOutlined"
16-
importLinkfrom"@material-ui/core/Link"
1715
import{useClickableTableRow}from"hooks/useClickableTableRow"
1816

1917
exportconstWorkspacesRow: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-
<Stackdirection="row"alignItems="center"spacing={1}>
71-
<TemplateLinkIconclassName={styles.templateLinkIcon}/>
72-
<span>{displayTemplateName}</span>
73-
</Stack>
74-
</Link>
75-
</TableCell>
58+
<TableCell>{displayTemplateName}</TableCell>
7659

7760
<TableCell>
7861
<LastUsedlastUsedAt={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)

[8]ページ先頭

©2009-2025 Movatter.jp