Lint fixes.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user