-
Notifications
You must be signed in to change notification settings - Fork 51
/
index.js
43 lines (37 loc) · 834 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from 'react'
import PropTypes from 'prop-types'
import SelectButtonList from '../../components/SelectButtonList'
const items = [
{
id: 'all',
icon: 'clock',
label: 'All'
},
{
id: 'comments',
icon: 'comment',
label: 'Comments'
},
{
id: 'updates',
icon: 'refresh',
label: 'Updates'
}
]
const idType = PropTypes.oneOf(['all', 'comments', 'updates'])
class ActivitySelectList extends React.Component {
static propTypes = {
selected: idType.isRequired,
selectItem: PropTypes.func.isRequired
}
render () {
return (
<SelectButtonList items={items}
className="Button--secondary" selected={this.props.selected}
selectItem={this.props.selectItem}
/>
)
}
}
ActivitySelectList.idType = idType
export default ActivitySelectList