SophiaLinetti / capstone-project_budget-buddy

https://capstone-project-budget-buddy.vercel.app
2 stars 0 forks source link

#5 Add "Show All" Button #6

Open Melonexx opened 10 months ago

Melonexx commented 10 months ago

Value proposition

As a User I want to see all transactions as well as the total amount of incomes - expenses so that i have again an overview of all incomes and expenses at once

Description

Bildschirmfoto 2024-02-08 um 10 41 09

Acceptance criteria

Tasks

Here’s an example of how to create a new component called CompleteListButton in the components folder:

function CompleteListButton() {
  const [showAll, setShowAll] = useState(false);

//...

  return (
    <div>
      <button onClick={() => handleFilter('income')}>Income</button>
      <button onClick={() => handleFilter('expense')}>Expense</button>
      <p>Total amount: {totalAmount}</p>
    </div>
  );
}
Miriam-Voelkl commented 10 months ago

looks great to me 🐝

ahohnsen commented 10 months ago

Same here: the title is soooooooo long! Remember: it should be short and precise :)