1
1
import { makeStyles } from "@material-ui/core/styles"
2
2
import { AppPreviewLink } from "components/AppLink/AppPreviewLink"
3
3
import { FC } from "react"
4
+ import { useTranslation } from "react-i18next"
4
5
import { combineClasses } from "util/combineClasses"
5
6
import { WorkspaceAgent } from "../../api/typesGenerated"
6
7
import { Stack } from "../Stack/Stack"
@@ -11,6 +12,7 @@ export interface AgentRowPreviewProps {
11
12
12
13
export const AgentRowPreview : FC < AgentRowPreviewProps > = ( { agent } ) => {
13
14
const styles = useStyles ( )
15
+ const { t } = useTranslation ( "agent" )
14
16
15
17
return (
16
18
< Stack
@@ -36,7 +38,7 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({ agent }) => {
36
38
spacing = { 1 }
37
39
className = { combineClasses ( [ styles . noShrink , styles . agentDataItem ] ) }
38
40
>
39
- < span > Agent :</ span >
41
+ < span > { t ( "label.agent" ) . toString ( ) } :</ span >
40
42
< span className = { styles . agentDataValue } > { agent . name } </ span >
41
43
</ Stack >
42
44
@@ -46,7 +48,7 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({ agent }) => {
46
48
spacing = { 1 }
47
49
className = { combineClasses ( [ styles . noShrink , styles . agentDataItem ] ) }
48
50
>
49
- < span > OS :</ span >
51
+ < span > { t ( "label.os" ) . toString ( ) } :</ span >
50
52
< span
51
53
className = { combineClasses ( [
52
54
styles . agentDataValue ,
@@ -63,7 +65,7 @@ export const AgentRowPreview: FC<AgentRowPreviewProps> = ({ agent }) => {
63
65
spacing = { 1 }
64
66
className = { styles . agentDataItem }
65
67
>
66
- < span > Apps :</ span >
68
+ < span > { t ( "label.apps" ) . toString ( ) } :</ span >
67
69
< Stack
68
70
direction = "row"
69
71
alignItems = "center"
0 commit comments