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

Ym av render names of list #17

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Ym av render names of list #17

merged 2 commits into from
Apr 6, 2023

Conversation

ashleyvalentine
Copy link
Collaborator

For an example of how to fill this template out, see this Pull Request.

Description

We worked on the List component so that it renders each list item from the database. Map is a standard approach to rendering lists of items from an array.

Related Issue

Closes #1

Acceptance Criteria

[x] The streamListItems function is used in App.jsx to get the items in the current list from the Firestore database
[x] The list is passed into the List component as a prop named data
[x] In List.jsx, the ListItem component is used to render the name of each item

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
💯 Add tests
🔗 Update dependencies
📜 Docs

Updates

Before

After

Screen Shot 2023-04-04 at 10 37 36 AM

Testing Steps / QA Criteria

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

Visit the preview URL for this PR (updated for commit 4562c0b):

https://tcl-56-smart-shopping-li-ffe7d--pr17-ym-av-render-name-lnt9jmxb.web.app

(expires Tue, 11 Apr 2023 14:40:33 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9c51cec5927ae3f1253a2134be95c1a07393f9a7

Copy link
Collaborator

@yiremorlans yiremorlans left a comment

Choose a reason for hiding this comment

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

Add .vscode to gitignore to prevent local vscode config push to repository. Clean up comments.

Located where data was being sent from API and functions in App.jsx responsible for sending data as a prop to the ListItem component.

Render the list of names using the database's unique ID as a key and name property for the list item.

@yiremorlans yiremorlans marked this pull request as ready for review April 4, 2023 18:21
@drakenguyen4000 drakenguyen4000 self-requested a review April 5, 2023 03:07
@drakenguyen4000
Copy link
Collaborator

Item names are rendered on the list page. The code looks clean. Great job!

@adidalal adidalal merged commit 9adc0ec into main Apr 6, 2023
2 checks passed
@adidalal adidalal deleted the ym-av-render-names-of-list branch April 6, 2023 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1. As a user, I want to read the names of all of the items in my shopping list
4 participants