Small prop change.

This commit is contained in:
Mike Cao 2020-10-03 18:05:46 -07:00
parent 7b5330c8a5
commit 34098bd0b4
2 changed files with 5 additions and 4 deletions

View File

@ -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}

View File

@ -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}
/> />