Skip to content

Commit

Permalink
Moving style object to separate const
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed Sep 26, 2017
1 parent 2b2ca8b commit bd100ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ const defaultProps = {
export default function InfoTooltipWithTrigger({
label, tooltip, icon, className, onClick, placement, bsStyle }) {
const iconClass = `fa fa-${icon} ${className} ${bsStyle ? 'text-' + bsStyle : ''}`;
const tooltipStyle = { wordWrap: 'break-word' };
return (
<OverlayTrigger
placement={placement}
overlay={
<Tooltip id={`${slugify(label)}-tooltip`} style={{ wordWrap: 'break-word' }}>
<Tooltip id={`${slugify(label)}-tooltip`} style={tooltipStyle}>
{tooltip}
</Tooltip>
}
Expand Down

0 comments on commit bd100ff

Please sign in to comment.