Added website menu view. Fixed pages filter.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { ButtonGroup, Button, Flexbox } from 'react-basics';
|
||||
|
||||
export default function FilterButtons({ items, selected, onSelect }) {
|
||||
export default function FilterButtons({ items, selectedKey, onSelect }) {
|
||||
return (
|
||||
<Flexbox justifyContent="center">
|
||||
<ButtonGroup items={items} selectedKey={selected} onSelect={onSelect}>
|
||||
<ButtonGroup items={items} selectedKey={selectedKey} onSelect={onSelect}>
|
||||
{({ key, label }) => <Button key={key}>{label}</Button>}
|
||||
</ButtonGroup>
|
||||
</Flexbox>
|
||||
|
||||
Reference in New Issue
Block a user