@@ -30,7 +30,7 @@ import {
30
30
Popover ,
31
31
PopoverContent ,
32
32
PopoverTrigger ,
33
- } from "components/deprecated/ Popover/Popover" ;
33
+ } from "components/Popover/Popover" ;
34
34
import {
35
35
HelpTooltipLink ,
36
36
HelpTooltipText ,
@@ -44,7 +44,6 @@ import {
44
44
TooltipTrigger ,
45
45
} from "components/Tooltip/Tooltip" ;
46
46
import { useFormik } from "formik" ;
47
- import { type ClassName , useClassName } from "hooks/useClassName" ;
48
47
import {
49
48
ChevronDownIcon ,
50
49
ExternalLinkIcon ,
@@ -77,7 +76,6 @@ export const PortForwardButton: FC<PortForwardButtonProps> = ({
77
76
agent,
78
77
} ) => {
79
78
const { entitlements } = useDashboard ( ) ;
80
- const paper = useClassName ( classNames . paper , [ ] ) ;
81
79
82
80
const { data : listeningPorts } = useQuery ( {
83
81
queryKey : [ "portForward" , agent . id ] ,
@@ -95,7 +93,7 @@ export const PortForwardButton: FC<PortForwardButtonProps> = ({
95
93
96
94
return (
97
95
< Popover >
98
- < PopoverTrigger >
96
+ < PopoverTrigger asChild >
99
97
< Button disabled = { ! listeningPorts } size = "sm" variant = "subtle" >
100
98
< Spinner loading = { ! listeningPorts } >
101
99
< span css = { styles . portCount } > { listeningPorts ?. length } </ span >
@@ -104,7 +102,10 @@ export const PortForwardButton: FC<PortForwardButtonProps> = ({
104
102
< ChevronDownIcon className = "size-4" />
105
103
</ Button >
106
104
</ PopoverTrigger >
107
- < PopoverContent horizontal = "right" classes = { { paper } } >
105
+ < PopoverContent
106
+ align = "end"
107
+ className = "p-0 w-[404px] mt-1 text-content-secondary bg-surface-secondary border-surface-quaternary"
108
+ >
108
109
< PortForwardPopoverView
109
110
host = { host }
110
111
agent = { agent }
@@ -618,15 +619,6 @@ export const PortForwardPopoverView: FC<PortForwardPopoverViewProps> = ({
618
619
) ;
619
620
} ;
620
621
621
- const classNames = {
622
- paper : ( css , theme ) => css `
623
- padding : 0 ;
624
- width : 404px ;
625
- color : ${ theme . palette . text . secondary } ;
626
- margin-top : 4px ;
627
- ` ,
628
- } satisfies Record < string , ClassName > ;
629
-
630
622
const styles = {
631
623
portCount : ( theme ) => ( {
632
624
fontSize : 12 ,
0 commit comments