@@ -7,10 +7,12 @@ import { Workspace } from "../../api/typesGenerated"
7
7
import { CardRadius , MONOSPACE_FONT_FAMILY } from "../../theme/constants"
8
8
import { combineClasses } from "../../util/combineClasses"
9
9
import { getDisplayStatus } from "../../util/workspace"
10
+ import { WorkspaceSection } from "../WorkspaceSection/WorkspaceSection"
10
11
11
12
const Language = {
13
+ workspaceDetails : "Workspace Details" ,
12
14
templateLabel : "Template" ,
13
- statusLabel : "Status" ,
15
+ statusLabel : "Workspace Status" ,
14
16
versionLabel : "Version" ,
15
17
lastBuiltLabel : "Last Built" ,
16
18
outdated : "Outdated" ,
@@ -27,7 +29,7 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({ workspace }) => {
27
29
const status = getDisplayStatus ( theme , workspace . latest_build )
28
30
29
31
return (
30
- < div className = { styles . stats } >
32
+ < WorkspaceSection title = { Language . workspaceDetails } contentsProps = { { className : styles . stats } } >
31
33
< div className = { styles . statItem } >
32
34
< span className = { styles . statsLabel } > { Language . templateLabel } </ span >
33
35
< Link
@@ -65,7 +67,7 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({ workspace }) => {
65
67
</ span >
66
68
</ span >
67
69
</ div >
68
- </ div >
70
+ </ WorkspaceSection >
69
71
)
70
72
}
71
73
@@ -79,7 +81,7 @@ const useStyles = makeStyles((theme) => ({
79
81
alignItems : "center" ,
80
82
color : theme . palette . text . secondary ,
81
83
fontFamily : MONOSPACE_FONT_FAMILY ,
82
- border : `1px solid ${ theme . palette . divider } ` ,
84
+ margin : "0px" ,
83
85
} ,
84
86
85
87
statItem : {
0 commit comments