PoiPoi-Dev / PoiPoi-frontend

MIT License
1 stars 4 forks source link

Feat/poi photo toggle uses filters #101

Closed J-Ariola closed 3 months ago

J-Ariola commented 3 months ago

Description

The PoiPhotoToggle now appears based on the users current filter setting. Due to how the code is setup, the change waits for the user's position to change for the closestNotCompletedPin to be calculated. This is intentional****

Slight refactor so that Map Container now passes relevant information to the PoiPhotoToggle rather than having the Toggle component calculate the closestNotCompletedPin itself. This saves on computation power

Card Link

https://3.basecamp.com/5802516/buckets/37608217/card_tables/cards/7512097301

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

I have tested this manually on the browser.

Checklist before requesting a review