Conversation
devkobetran
approved these changes
Sep 5, 2025
| {dashboardItems.length === 0 ? ( | ||
| <p>No items found.</p> | ||
| ) : ( | ||
| dashboardItems.map((item) => ( |
Owner
There was a problem hiding this comment.
You might need to double check the ItemCard component.
So dashboardItems might have more data fields than expected compared to what ItemCard is taking in.
But we might not want to pass all of the fields in, we just want to render some of it per what is described in the user story. You could extract the necessary fields needed from dashboardItems, and pass each desired field as a prop into ItemCard.
src/pages/Dashboard.tsx
Outdated
| const [dashboardItems, setDashboardItems] = useState<ItemInputs[]>([]); | ||
| const [loading, setLoading] = useState(true); | ||
|
|
||
| console.log(client.models); |
Owner
There was a problem hiding this comment.
remove the console log now that it is working
src/components/ItemCard.tsx
Outdated
| <h2>{itemName}</h2> | ||
| <div className="item-barcode">{barcode}</div> | ||
| <p>{description}</p> | ||
| <div className="item-category-and-store">{category} | {storeName}</div> |
Owner
There was a problem hiding this comment.
Looking at the code now.
Maybe easier to make storeName it's own line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.