luceroweb / karot-saving-smart

Millions of us are living paycheck to paycheck. It can be difficult to build a budget that helps you pay for your bills as well as plan for the future - without making you feel like you have to do without. You may have heard about the tried and true cash “Envelope Savings” system, which can help you to make sure you always have enough to pay your b
https://karot-saving-smart.netlify.app/
3 stars 13 forks source link

feat(ExpensesModal): add delete button and update extra money #95 #118

Closed eyobel7k closed 2 years ago

eyobel7k commented 2 years ago

Changes

List Changes Introduced by this PR

  1. Add a delete button on the expense modal.
  2. Before the item is deleted, display a modal that lets the user confirm or cancel the deletion.
  3. Created a function that performs the delete task and calculates extra money left

Purpose

There is now a button to delete expense items from the list and update extra money.

Approach

Once the user confirms their intent to delete a particular expense, they will be able to delete it.

Learning

Used filter function, Redux and TypeScript

Closes #95