Have content assume it's jsx/node

This commit is contained in:
dannyrb 2020-06-15 23:37:04 -04:00
parent 00f0ae4bbc
commit 3a15702907

View File

@ -65,7 +65,7 @@ const Tooltip = ({ content, isSticky, position, tight, children }) => {
} }
)} )}
> >
{typeof content === 'function' ? content() : content} {content}
<svg <svg
className="absolute h-4 text-primary-dark stroke-secondary-main" className="absolute h-4 text-primary-dark stroke-secondary-main"
style={arrowPositionStyle[position]} style={arrowPositionStyle[position]}