Closed andy-t-wang closed 11 months ago
My original intention was that the highlight would be generic and you could use the text property to make decisions. But I think you can still accomplish what you need.
Try replacing component: Tooltip, question: text.question,
with something like component: (props) => <Tooltip question={{question}}>{{props.children}}</Tooltip>,
.
Let me know if that works.
Worked thanks!
I have some tooltip that I'm trying to use to render a custom edit screen.
Tooltip
Highlight Component
This is my HighlightComponent. I'm trying to pass in questions as well as an edit function call that will modify state to each item in the improve list. But right now I can't seem to pass any props into the tooltip component. How can I do this?