SophiaLinetti / capstone-project_budget-buddy

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

#3 Entry Filter Function #4

Open Melonexx opened 7 months ago

Melonexx commented 7 months ago

Value proposition

As a User I want to be able to filter my income and expense so that I have an overview of my expenses or incomes depending on which filter button i clicked

Description

Bildschirmfoto 2024-02-02 um 11 04 52

Acceptance criteria

Tasks

function FilterButtons() {
  const [filter, setFilter] = useState('');

  function handleFilter(filter) {
    setFilter(filter);
  }

  return (
    <div>
      <button onClick={() => handleFilter('income')}>Income</button>
      <button onClick={() => handleFilter('expense')}>Expense</button>
    </div>
  );
}
jessicareinh commented 7 months ago

Bei den Wireframes wird nicht ganz klar, wie die App beim Filtern aussehen soll. Ihr habt die Bilder in den Acceptance Criterias erwähnt, aber leider nicht dargestellt...

ahohnsen commented 7 months ago

Maybe you can add in the Acceptance Criteria, that the selected filter is visually highlighted (e.g. has another color). At least it looks a bit like that in your wireframes :)