mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Convert text for internationalization.
This commit is contained in:
parent
6833a5bdb0
commit
f0ac9b6522
36 changed files with 1091 additions and 196 deletions
|
|
@ -13,17 +13,20 @@ export default function ButtonGroup({
|
|||
}) {
|
||||
return (
|
||||
<div className={classNames(styles.group, className)}>
|
||||
{items.map(item => (
|
||||
<Button
|
||||
key={item}
|
||||
className={classNames(styles.button, { [styles.selected]: selectedItem === item })}
|
||||
size={size}
|
||||
icon={icon}
|
||||
onClick={() => onClick(item)}
|
||||
>
|
||||
{item}
|
||||
</Button>
|
||||
))}
|
||||
{items.map(item => {
|
||||
const { label, value } = item;
|
||||
return (
|
||||
<Button
|
||||
key={value}
|
||||
className={classNames(styles.button, { [styles.selected]: selectedItem === value })}
|
||||
size={size}
|
||||
icon={icon}
|
||||
onClick={() => onClick(value)}
|
||||
>
|
||||
{label}
|
||||
</Button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue