Skip to content

Commit ec0bb7b

Browse files
authored
feat: update language on workspace page (#2220)
1 parent 02d2aea commit ec0bb7b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

site/src/components/WorkspaceStats/WorkspaceStats.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ import { Workspace } from "../../api/typesGenerated"
77
import { CardRadius, MONOSPACE_FONT_FAMILY } from "../../theme/constants"
88
import { combineClasses } from "../../util/combineClasses"
99
import { getDisplayStatus } from "../../util/workspace"
10+
import { WorkspaceSection } from "../WorkspaceSection/WorkspaceSection"
1011

1112
const Language = {
13+
workspaceDetails: "Workspace Details",
1214
templateLabel: "Template",
13-
statusLabel: "Status",
15+
statusLabel: "Workspace Status",
1416
versionLabel: "Version",
1517
lastBuiltLabel: "Last Built",
1618
outdated: "Outdated",
@@ -27,7 +29,7 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({ workspace }) => {
2729
const status = getDisplayStatus(theme, workspace.latest_build)
2830

2931
return (
30-
<div className={styles.stats}>
32+
<WorkspaceSection title={Language.workspaceDetails} contentsProps={{ className: styles.stats }}>
3133
<div className={styles.statItem}>
3234
<span className={styles.statsLabel}>{Language.templateLabel}</span>
3335
<Link
@@ -65,7 +67,7 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({ workspace }) => {
6567
</span>
6668
</span>
6769
</div>
68-
</div>
70+
</WorkspaceSection>
6971
)
7072
}
7173

@@ -79,7 +81,7 @@ const useStyles = makeStyles((theme) => ({
7981
alignItems: "center",
8082
color: theme.palette.text.secondary,
8183
fontFamily: MONOSPACE_FONT_FAMILY,
82-
border: `1px solid ${theme.palette.divider}`,
84+
margin: "0px",
8385
},
8486

8587
statItem: {

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