The EnterBudget component
The component to enter a budget should do the following things:
- Prompt the user to enter their budget for the month with a numerical input
- Include a button that lets them save the budget. When saved, we will do the following things:
- Have the parent
App.js
component usesaveMonthlyBudget
, created in ourstorageMethods
file, to save the entered budget - Update the parent
App.js
component to reflect the entered budget - Pop out of the
EnterBudget
component and go back to theApp.js
component
- Have the parent
We should also modify the App.js
component so that it does the following things:
- Pushes the
EnterBudget
component to the navigator in the event that a budget has not been set. This should replace the current call to alert the user that they have not yet set a budget. This component should not contain a back button so that the user is required to enter a budget for the month. - Passes the name of the current month in string form to the
EnterBudget
component. - Stores the current month and year in...