Open SophiaLinetti opened 10 months ago
Your title is somewhat too generic. There could be several types of forms and lists in your app. Please be more specific so you can easily and quickly assign this user story, for example: Add Incomes and Expenses
Just a small hint: You don't need to implement a calendar. If you choose "date" as the type for your input field, a calendar will automatically be displayed to the user when they click on the input field.
💡 Also, you don't need the example code in your tasks. If it helps you, you can of course keep it, but it's not a must.
Additionally, your data model is not correctly written down. As we discussed yesterday, you will either use a JSON/js file or save the data in a constant directly in the component where your useState
is. This constant will then simply contain an array of objects.
Example for data.js
file:
export const transactions = [
{
id: "1",
typ: "income",
amount: 2500,
date: "2024-01-15",
description: "McDonalds with my Grandmother"
category: "food",
},
{
id: "2",
typ: "expense",
amount: 50,
date: "2024-01-16",
description : "Yoga Session"
category: "sports",
},
...
]
Value proposition
As a User I want to insert my income and expenses so that I can track my finances in a list
Description
Acceptance criteria
Tasks
Here’s an example of how to create a new component called List in the components folder:
Heres an example of data.js initial entries: