1
- import { useRef , useState , FC } from "react" ;
2
- import { makeStyles } from "@mui/styles" ;
3
- import { WorkspaceAgent } from "api/typesGenerated" ;
1
+ import { type FC , useRef , useState } from "react" ;
2
+ import type { WorkspaceAgent } from "api/typesGenerated" ;
4
3
import { getDisplayVersionStatus } from "utils/workspace" ;
5
4
import { AgentOutdatedTooltip } from "./AgentOutdatedTooltip" ;
6
5
@@ -9,7 +8,6 @@ export const AgentVersion: FC<{
9
8
serverVersion : string ;
10
9
onUpdate : ( ) => void ;
11
10
} > = ( { agent, serverVersion, onUpdate } ) => {
12
- const styles = useStyles ( ) ;
13
11
const anchorRef = useRef < HTMLButtonElement > ( null ) ;
14
12
const [ isOpen , setIsOpen ] = useState ( false ) ;
15
13
const id = isOpen ? "version-outdated-popover" : undefined ;
@@ -27,7 +25,7 @@ export const AgentVersion: FC<{
27
25
ref = { anchorRef }
28
26
onMouseEnter = { ( ) => setIsOpen ( true ) }
29
27
onMouseLeave = { ( ) => setIsOpen ( false ) }
30
- className = { styles . trigger }
28
+ css = { { cursor : "pointer" } }
31
29
>
32
30
Outdated
33
31
</ span >
@@ -44,9 +42,3 @@ export const AgentVersion: FC<{
44
42
</ >
45
43
) ;
46
44
} ;
47
-
48
- const useStyles = makeStyles ( ( ) => ( {
49
- trigger : {
50
- cursor : "pointer" ,
51
- } ,
52
- } ) ) ;
0 commit comments