mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
New Dashboard component.
This commit is contained in:
parent
33c921a32f
commit
20622116a8
10 changed files with 64 additions and 57 deletions
|
|
@ -11,6 +11,7 @@ function MenuButton({
|
|||
value,
|
||||
options,
|
||||
buttonClassName,
|
||||
buttonVariant,
|
||||
menuClassName,
|
||||
menuPosition = 'bottom',
|
||||
menuAlign = 'right',
|
||||
|
|
@ -43,7 +44,7 @@ function MenuButton({
|
|||
icon={icon}
|
||||
className={classNames(styles.button, buttonClassName, { [styles.open]: showMenu })}
|
||||
onClick={toggleMenu}
|
||||
variant="light"
|
||||
variant={buttonVariant}
|
||||
>
|
||||
{!hideLabel && (
|
||||
<div className={styles.text}>{renderValue ? renderValue(selectedOption) : value}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue