Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map starting location #145

Merged
merged 6 commits into from
May 6, 2024
Merged

Map starting location #145

merged 6 commits into from
May 6, 2024

Conversation

AndchooChen
Copy link
Collaborator

Fixes #144

What was changed?

For this pull request, the files that were changed were the ExploreScreen and I also added a ExploreLoadingScreen

Why was it changed?

One thing we were requested to add for this issue was to add loading the ExploreScreen based on the location of the User. This is because by default the ExploreScreen started at St. Louis. Now because it starts based on the location of the user, it will be more relevant to the user when they first open up the screen. However, one thing that should be changed because of this is that cards should be based on proximity of the user.

How was it changed?

So a useEffect was used to grab the user's location and then the latitude and longitude were changed to match the user's location. Additionally, an ExploreLoadingScreen was added so now the LoadingScreen shows first on initial render to allow for the useEffect to grab location first!

Screenshots that show the changes (if applicable):

@AndchooChen AndchooChen added the enhancement New feature or request label Apr 19, 2024
@AndchooChen AndchooChen self-assigned this Apr 19, 2024
@AndchooChen AndchooChen linked an issue Apr 19, 2024 that may be closed by this pull request
Copy link
Collaborator

@yashb196 yashb196 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is unknown changes please mention

@AndchooChen
Copy link
Collaborator Author

Hello! The unknown changes are just fixing some of the indentations and white space between lines of code.

@AndchooChen AndchooChen marked this pull request as ready for review May 3, 2024 11:54
@yashb196 yashb196 merged commit 783701e into main May 6, 2024
1 check passed
@yashb196 yashb196 deleted the MapStartingLocation branch June 15, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map Starting Location
2 participants