mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Lint fixes.
This commit is contained in:
parent
c948bbca12
commit
e1e6493dec
17 changed files with 41 additions and 71 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { Key } from 'react';
|
||||
import { Row, Button, Flexbox } from '@umami/react-zen';
|
||||
import { Text, Row, Button, Flexbox } from '@umami/react-zen';
|
||||
|
||||
export interface FilterButtonsProps {
|
||||
items: any[];
|
||||
|
|
@ -12,7 +12,9 @@ export function FilterButtons({ items, selectedKey, onSelect }: FilterButtonsPro
|
|||
<Flexbox justifyContent="center">
|
||||
<Row>
|
||||
{items.map(({ key, label }) => (
|
||||
<Button key={key}>{label}</Button>
|
||||
<Button key={key} onPress={() => onSelect(key)}>
|
||||
<Text weight={key === selectedKey ? 'bold' : undefined}>{label}</Text>
|
||||
</Button>
|
||||
))}
|
||||
</Row>
|
||||
</Flexbox>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue