mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Small prop change.
This commit is contained in:
parent
7b5330c8a5
commit
34098bd0b4
@ -9,7 +9,8 @@ export default function MenuButton({
|
||||
icon,
|
||||
value,
|
||||
options,
|
||||
menuClassname,
|
||||
buttonClassName,
|
||||
menuClassName,
|
||||
menuPosition = 'bottom',
|
||||
menuAlign = 'right',
|
||||
onSelect,
|
||||
@ -38,7 +39,7 @@ export default function MenuButton({
|
||||
<div className={styles.container} ref={ref}>
|
||||
<Button
|
||||
icon={icon}
|
||||
className={classNames(styles.button, { [styles.open]: showMenu })}
|
||||
className={classNames(styles.button, buttonClassName, { [styles.open]: showMenu })}
|
||||
onClick={toggleMenu}
|
||||
variant="light"
|
||||
>
|
||||
@ -46,7 +47,7 @@ export default function MenuButton({
|
||||
</Button>
|
||||
{showMenu && (
|
||||
<Menu
|
||||
className={menuClassname}
|
||||
className={menuClassName}
|
||||
options={options}
|
||||
selectedOption={selectedOption}
|
||||
onSelect={handleSelect}
|
||||
|
@ -33,7 +33,7 @@ export default function LanguageButton() {
|
||||
icon={<Globe />}
|
||||
options={menuOptions}
|
||||
value={locale}
|
||||
menuClassname={styles.menu}
|
||||
menuClassName={styles.menu}
|
||||
renderValue={option => option?.display}
|
||||
onSelect={handleSelect}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user