Lint fixes.

This commit is contained in:
Mike Cao 2025-03-08 08:40:41 -08:00
parent c948bbca12
commit e1e6493dec
17 changed files with 41 additions and 71 deletions

View file

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