Commit Graph

6 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
028c0844ad Fix: Resolve TS errors in TransactionEditDialog
This commit addresses TypeScript errors in TransactionEditDialog.tsx by:

- Modifying the useTransactionEdit hook to return the form and handleDelete properties.
- Adjusting the arguments passed to the useTransactionEdit hook to match the expected parameters.
- Ensuring the onSubmit prop in TransactionEditForm expects the correct type.
2025-03-22 13:14:15 +00:00
gpt-engineer-app[bot]
74f7282fac Refactor title suggestion logic
Implement new logic for title suggestions based on usage frequency.
2025-03-22 13:12:52 +00:00
gpt-engineer-app[bot]
0d1306ef2e Fix module import errors
Corrected import paths for '@/contexts/BudgetContext' in multiple components to resolve module not found errors.
2025-03-22 07:29:34 +00:00
gpt-engineer-app[bot]
2eff95908e Fix: Ensure BudgetProvider usage
The `useBudget` hook was being called outside of the `BudgetProvider` context in the `Index` component. This commit ensures that the `Index` component and its children are wrapped with the `BudgetProvider` in `App.tsx` to resolve the error.
2025-03-22 07:14:12 +00:00
gpt-engineer-app[bot]
aa8381a823 Add payment method selection
Adds a payment method selection (Credit Card, Cash) to the expense form and includes a line separator. Also requests to add a graph showing the proportion of credit card and cash usage in expense analytics, but this part is not implemented in this commit.
2025-03-22 07:08:02 +00:00
gpt-engineer-app[bot]
c473abda72 Refactor TransactionEditDialog component
The TransactionEditDialog component was refactored into smaller, more manageable components to improve code organization and maintainability. The functionality remains the same.
2025-03-21 10:05:01 +00:00