File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
import MenuItem , { type MenuItemProps } from "@mui/material/MenuItem" ;
2
2
import MenuList , { type MenuListProps } from "@mui/material/MenuList" ;
3
+ import type {
4
+ PopoverContentProps ,
5
+ PopoverTriggerProps ,
6
+ } from "@radix-ui/react-popover" ;
3
7
import { Button , type ButtonProps } from "components/Button/Button" ;
4
8
import {
5
9
Popover ,
6
10
PopoverContent ,
7
11
PopoverTrigger ,
8
- } from "components/deprecated/ Popover/Popover" ;
12
+ } from "components/Popover/Popover" ;
9
13
import {
10
14
SearchField ,
11
15
type SearchFieldProps ,
@@ -26,9 +30,21 @@ const SIDE_PADDING = 16;
26
30
27
31
export const SelectMenu = Popover ;
28
32
29
- export const SelectMenuTrigger = PopoverTrigger ;
33
+ export const SelectMenuTrigger : FC < PopoverTriggerProps > = ( props ) => {
34
+ return < PopoverTrigger asChild { ...props } /> ;
35
+ } ;
30
36
31
- export const SelectMenuContent = PopoverContent ;
37
+ export const SelectMenuContent : FC < PopoverContentProps > = ( props ) => {
38
+ return (
39
+ < PopoverContent
40
+ className = { cn (
41
+ "bg-surface-secondary border-surface-quaternary overflow-y-auto" ,
42
+ props . className ,
43
+ ) }
44
+ { ...props }
45
+ />
46
+ ) ;
47
+ } ;
32
48
33
49
type SelectMenuButtonProps = ButtonProps & {
34
50
startIcon ?: React . ReactNode ;
You can’t perform that action at this time.
0 commit comments