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

View File

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