File tree Expand file tree Collapse file tree 3 files changed +13
-25
lines changed Expand file tree Collapse file tree 3 files changed +13
-25
lines changed Original file line number Diff line number Diff line change @@ -216,23 +216,3 @@ export const DropdownMenuShortcut = ({
216
216
) ;
217
217
} ;
218
218
DropdownMenuShortcut . displayName = "DropdownMenuShortcut" ;
219
-
220
- export interface DropdownMenuButtonProps
221
- extends ComponentPropsWithoutRef < typeof Button > { }
222
-
223
- export const DropdownMenuButton = forwardRef <
224
- HTMLButtonElement ,
225
- DropdownMenuButtonProps
226
- > ( ( { children, ...props } , ref ) => {
227
- return (
228
- < Button ref = { ref } variant = "outline" { ...props } >
229
- { children }
230
- < DropdownMenuChevronDown />
231
- </ Button >
232
- ) ;
233
- } ) ;
234
- DropdownMenuButton . displayName = "DropdownMenuButton" ;
235
-
236
- export const DropdownMenuChevronDown : FC = ( ) => {
237
- return < ChevronDownIcon className = "text-content-primary !size-icon-xs" /> ;
238
- } ;
Original file line number Diff line number Diff line change 1
1
import { type Interpolation , type Theme , css , useTheme } from "@emotion/react" ;
2
2
import MenuItem from "@mui/material/MenuItem" ;
3
- import { DropdownMenuButton } from "components/DropdownMenu/DropdownMenu " ;
3
+ import { Button } from "components/Button/Button " ;
4
4
import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge" ;
5
5
import {
6
6
Popover ,
7
7
PopoverContent ,
8
8
PopoverTrigger ,
9
9
usePopover ,
10
10
} from "components/deprecated/Popover/Popover" ;
11
+ import { ChevronDownIcon } from "lucide-react" ;
11
12
import { linkToAuditing } from "modules/navigation" ;
12
13
import type { FC } from "react" ;
13
14
import { NavLink } from "react-router-dom" ;
@@ -39,7 +40,10 @@ export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
39
40
return (
40
41
< Popover >
41
42
< PopoverTrigger >
42
- < DropdownMenuButton size = "lg" > Admin settings</ DropdownMenuButton >
43
+ < Button variant = "outline" size = "lg" >
44
+ Admin settings
45
+ < ChevronDownIcon className = "text-content-primary !size-icon-xs" />
46
+ </ Button >
43
47
</ PopoverTrigger >
44
48
45
49
< PopoverContent
Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ import Skeleton from "@mui/material/Skeleton";
6
6
import { visuallyHidden } from "@mui/utils" ;
7
7
import type * as TypesGen from "api/typesGenerated" ;
8
8
import { Abbr } from "components/Abbr/Abbr" ;
9
- import { DropdownMenuButton } from "components/DropdownMenu/DropdownMenu" ;
10
9
import { displayError } from "components/GlobalSnackbar/utils" ;
11
10
import { Latency } from "components/Latency/Latency" ;
12
11
import type { ProxyContextValue } from "contexts/ProxyContext" ;
13
12
import { useAuthenticated } from "contexts/auth/RequireAuth" ;
14
13
import { type FC , useRef , useState } from "react" ;
15
14
import { useNavigate } from "react-router-dom" ;
16
15
import { sortProxiesByLatency } from "./proxyUtils" ;
16
+ import { Button } from "components/Button/Button" ;
17
+ import { ChevronDownIcon } from "lucide-react" ;
17
18
18
19
interface ProxyMenuProps {
19
20
proxyContextValue : ProxyContextValue ;
@@ -69,7 +70,8 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
69
70
70
71
return (
71
72
< >
72
- < DropdownMenuButton
73
+ < Button
74
+ variant = "outline"
73
75
ref = { buttonRef }
74
76
onClick = { ( ) => setIsOpen ( true ) }
75
77
size = "lg"
@@ -102,7 +104,9 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
102
104
) : (
103
105
"Select Proxy"
104
106
) }
105
- </ DropdownMenuButton >
107
+
108
+ < ChevronDownIcon className = "text-content-primary !size-icon-xs" />
109
+ </ Button >
106
110
107
111
< Menu
108
112
open = { isOpen }
You can’t perform that action at this time.
0 commit comments