react-mapfilter
Version:
These components are designed for viewing data in Mapeo. They share a common interface:
17 lines (13 loc) • 414 B
JavaScript
import React from 'react'
import Button from '@material-ui/core/Button'
import { defineMessages, FormattedMessage } from 'react-intl'
const messages = defineMessages({
// Button text to turn off filters for a field
showAll: 'All'
})
const ShowAllButton = props => (
<Button color="primary" size="small" {...props}>
<FormattedMessage {...messages.showAll} />
</Button>
)
export default ShowAllButton