message: add Tooltip.propTypes, tidy
diff: import React from 'react'
  +import PropTypes from 'prop-types'
  import classnames from 'classnames'
  const alignmentDirections = ['ne', 'se', 'nw', 'sw']
  @@ -8,12 +9,10 @@ const Tooltip = ({children, direction, text, noDelay, align, wrap}) => (
  aria-label={text}
  className={classnames(
  'tooltipped',
  - `tooltipped-${direction || 'n'}`,
  - align && alignmentDirections.includes(direction) ? `tooltipped-align-${align}-2` : '',
  - {
  - 'tooltipped-no-delay': noDelay,
  - 'tooltipped-multiline': wrap
  - }
  + `tooltipped-${direction}`,
  + align && `tooltipped-align-${align}-2`,
  + noDelay && 'tooltipped-no-delay',
  + wrap && 'tooltipped-multiline'
  )}
  >
  {children}
  @@ -22,4 +21,17 @@ const Tooltip = ({children, direction, text, noDelay, align, wrap}) => (
  Tooltip.directions = ['n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw']
  +Tooltip.defaultProps = {
  + direction: 'n'
  +}
  +
  +Tooltip.propTypes = {
  + align: PropTypes.oneOf(alignmentDirections),
  + children: PropTypes.node,
  + direction: PropTypes.oneOf(Tooltip.directions),
  + noDelay: PropTypes.bool,
  + text: PropTypes.string,
  + wrap: PropTypes.bool
  +}
  +
  export default Tooltip
  