Add tooltips capabilities to buttons (#5562)

Add tooltips for buttons on ActionBar if text not visible
This commit is contained in:
Nicolas Gotchac
2017-05-10 16:19:01 +02:00
committed by Jaco Greeff
parent 3e86b2e666
commit eff4cde738
6 changed files with 244 additions and 22 deletions

View File

@@ -31,6 +31,7 @@ import Loading from '~/ui/Loading';
import Portal from '~/ui/Portal';
import { nodeOrStringProptype } from '~/util/proptypes';
import { validateAddress } from '~/util/validation';
import { toString } from '~/util/messages';
import AddressSelectStore from './addressSelectStore';
import styles from './addressSelect.css';
@@ -186,12 +187,7 @@ class AddressSelect extends Component {
}
const id = `addressSelect_${++currentId}`;
const ilHint = typeof hint === 'string' || !(hint && hint.props)
? (hint || '')
: this.context.intl.formatMessage(
hint.props,
hint.props.values || {}
);
const ilHint = toString(this.context, hint);
return (
<Portal