react-mapfilter
Version:
These components are designed for viewing data in Mapeo. They share a common interface:
18 lines (13 loc) • 422 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 only show a particular field value in a filter
only: 'Only'
})
const OnlyButton = props => (
<Button color="primary" size="small" {...props}>
<FormattedMessage {...messages.only} />
</Button>
)
export default OnlyButton