project_professional_portfolio icon indicating copy to clipboard operation
project_professional_portfolio copied to clipboard

testimonials map issue

Open cordovacarlos22 opened this issue 1 year ago • 6 comments

had an issue while mapping over testimonials Img tag. I think there has been one on the sanity backend schema. I tried to map over testimonials.Imgur but it didn't work. so I debug the data responsive with : { {console.log(testimonials[0].imageUrl.asset._ref)} } and now it returns whats supposed to be returned

Screenshot 2023-03-07 at 6 14 48 PM Screenshot 2023-03-07 at 6 14 48 PM

this is the what it returns now Screenshot 2023-03-07 at 6 16 28 PM

cordovacarlos22 avatar Mar 08 '23 02:03 cordovacarlos22

new line of code <img src={urlFor(testimonials[currentIndex].imageUrl.asset._ref)} alt={testimonials[currentIndex].name} />

cordovacarlos22 avatar Mar 08 '23 02:03 cordovacarlos22

{testimonials[currentIndex].name}

did this fix this issues? Have you managed to fix the react tooltip? Having some issues with that in the skills.jsx file. Could you put a snippet of your skills file up if so? Thanks

PyroMessiah86 avatar Mar 09 '23 13:03 PyroMessiah86

{testimonials[currentIndex].name}

did this fix this issues? Have you managed to fix the react tooltip? Having some issues with that in the skills.jsx file. Could you put a snippet of your skills file up if so? Thanks

<Tooltip
id={work.name} effect="solid" arrowColor="#fff" className="skills-tooltip" > {work.desc} </Tooltip>

That should fix the tool tip issue, also you would have to import tooltip from 'react-tooltip'

yomi3tech avatar Mar 13 '23 13:03 yomi3tech

Hmm.... I've imported tooltip but it's not functioning right.

On Mon, 13 Mar 2023, 14:37 Emmanuel Abayomi Abikoye, < @.***> wrote:

[image: {testimonials[currentIndex].name}]

did this fix this issues? Have you managed to fix the react tooltip? Having some issues with that in the skills.jsx file. Could you put a snippet of your skills file up if so? Thanks

{work.desc}

That should fix the tool tip issue, also you would have to import tooltip from 'react-tooltip'

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_professional_portfolio/issues/53#issuecomment-1466160643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7PJUZ77JGOSJNC46WLSETW34PKZANCNFSM6AAAAAAVTG5RGQ . You are receiving this because you commented.Message ID: @.*** com>

PyroMessiah86 avatar Mar 13 '23 13:03 PyroMessiah86

Hmm.... I've imported tooltip but it's not functioning right. On Mon, 13 Mar 2023, 14:37 Emmanuel Abayomi Abikoye, < @.> wrote: [image: {testimonials[currentIndex].name}] did this fix this issues? Have you managed to fix the react tooltip? Having some issues with that in the skills.jsx file. Could you put a snippet of your skills file up if so? Thanks {work.desc} That should fix the tool tip issue, also you would have to import tooltip from 'react-tooltip' — Reply to this email directly, view it on GitHub <#53 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7PJUZ77JGOSJNC46WLSETW34PKZANCNFSM6AAAAAAVTG5RGQ . You are receiving this because you commented.Message ID: @. com>

technologies upgrade very fast this this you may prefer the documentation as react-tooltip upgraded its version fromv4-v5

lohargaurav00 avatar Mar 21 '23 12:03 lohargaurav00

new line of code <img src={urlFor(testimonials[currentIndex].imageUrl.asset._ref)} alt={testimonials[currentIndex].name} />

there is permanent fix for that let me work i will create a pull request which fix that

lohargaurav00 avatar Mar 21 '23 12:03 lohargaurav00