mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 23:33:37 +01:00
Small prop change.
This commit is contained in:
parent
7b5330c8a5
commit
34098bd0b4
@ -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}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user