import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import React from 'react'; import bindAll from 'lodash.bindall'; import Box from '../box/box.jsx'; import styles from './connection-modal.css'; class PeripheralTile extends React.Component { constructor (props) { super(props); bindAll(this, [ 'handleConnecting' ]); } handleConnecting () { this.props.onConnecting(this.props.peripheralId); } render () { return ( {this.props.name}
-80 })} />
-60 })} />
-40 })} />
-20 })} /> ); } } PeripheralTile.propTypes = { connectionSmallIconURL: PropTypes.string, name: PropTypes.string, onConnecting: PropTypes.func, peripheralId: PropTypes.string, rssi: PropTypes.number }; export default PeripheralTile;