Small prop change.
This commit is contained in:
@@ -9,7 +9,8 @@ export default function MenuButton({
|
|||||||
icon,
|
icon,
|
||||||
value,
|
value,
|
||||||
options,
|
options,
|
||||||
menuClassname,
|
buttonClassName,
|
||||||
|
menuClassName,
|
||||||
menuPosition = 'bottom',
|
menuPosition = 'bottom',
|
||||||
menuAlign = 'right',
|
menuAlign = 'right',
|
||||||
onSelect,
|
onSelect,
|
||||||
@@ -38,7 +39,7 @@ export default function MenuButton({
|
|||||||
<div className={styles.container} ref={ref}>
|
<div className={styles.container} ref={ref}>
|
||||||
<Button
|
<Button
|
||||||
icon={icon}
|
icon={icon}
|
||||||
className={classNames(styles.button, { [styles.open]: showMenu })}
|
className={classNames(styles.button, buttonClassName, { [styles.open]: showMenu })}
|
||||||
onClick={toggleMenu}
|
onClick={toggleMenu}
|
||||||
variant="light"
|
variant="light"
|
||||||
>
|
>
|
||||||
@@ -46,7 +47,7 @@ export default function MenuButton({
|
|||||||
</Button>
|
</Button>
|
||||||
{showMenu && (
|
{showMenu && (
|
||||||
<Menu
|
<Menu
|
||||||
className={menuClassname}
|
className={menuClassName}
|
||||||
options={options}
|
options={options}
|
||||||
selectedOption={selectedOption}
|
selectedOption={selectedOption}
|
||||||
onSelect={handleSelect}
|
onSelect={handleSelect}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export default function LanguageButton() {
|
|||||||
icon={<Globe />}
|
icon={<Globe />}
|
||||||
options={menuOptions}
|
options={menuOptions}
|
||||||
value={locale}
|
value={locale}
|
||||||
menuClassname={styles.menu}
|
menuClassName={styles.menu}
|
||||||
renderValue={option => option?.display}
|
renderValue={option => option?.display}
|
||||||
onSelect={handleSelect}
|
onSelect={handleSelect}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user