This repository was archived by the owner on Jul 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const MenuDrawer: React.FC<MenuDrawerProps> = ({
94
94
// For fullHeight drawers (mobile), use Portal to ensure proper theme sync
95
95
if ( fullHeight ) {
96
96
return (
97
- < Portal mounted = { true } rootClassName = "menu-drawer-portal" >
97
+ < Portal mounted rootClassName = "menu-drawer-portal" >
98
98
{ onBackdropClick && (
99
99
< div
100
100
className = { twJoin (
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
type SettingMenuDescriptionProps ,
13
13
type SettingMenuCustomContentProps ,
14
14
} from "./types" ;
15
+ import { twJoin } from "tailwind-merge" ;
15
16
16
17
const SettingsIcon = ( ) => (
17
18
< svg width = "29" height = "28" viewBox = "0 0 29 28" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
@@ -71,7 +72,7 @@ const SettingMenuBase: React.FC<SettingMenuProps> = ({
71
72
} ;
72
73
73
74
const SettingMenuTitle : React . FC < SettingMenuTitleProps > = ( { children, className = "" } ) => (
74
- < Text variant = "body1" className = { ` px-7 pb-6 text-accent-primary md:hidden ${ className } ` } >
75
+ < Text variant = "body1" className = { twJoin ( " px-7 pb-6 text-accent-primary md:hidden" , className ) } >
75
76
{ children }
76
77
</ Text >
77
78
) ;
@@ -93,7 +94,7 @@ const SettingMenuGroup: React.FC<SettingMenuGroupProps> = ({
93
94
}
94
95
} ;
95
96
96
- return < div className = { ` ${ getBackgroundClass ( ) } ${ className } ` . trim ( ) } > { children } </ div > ;
97
+ return < div className = { twJoin ( getBackgroundClass ( ) , className ) } > { children } </ div > ;
97
98
} ;
98
99
99
100
// Item component
@@ -125,7 +126,7 @@ const SettingMenuItem: React.FC<SettingMenuItemProps> = ({
125
126
disabled = { disabled }
126
127
selected = { selected }
127
128
className = { className }
128
- suffix = { suffix || < ChevronRightIcon /> }
129
+ suffix = { suffix === undefined && onClick ? < ChevronRightIcon /> : suffix }
129
130
/>
130
131
) ;
131
132
} ;
You can’t perform that action at this time.
0 commit comments