From db7057d7453985218abf4da324e0059358306800 Mon Sep 17 00:00:00 2001 From: Frnn4268 Date: Sun, 10 Nov 2024 14:01:00 -0600 Subject: [PATCH] Fixing some bugs inside of IncomeForm.jsx component --- .../components/dailyIncome/IncomeForm.jsx | 74 ++++++++++--------- frontend/src/pages/income/DailyIncome.jsx | 2 +- 2 files changed, 39 insertions(+), 37 deletions(-) diff --git a/frontend/components/dailyIncome/IncomeForm.jsx b/frontend/components/dailyIncome/IncomeForm.jsx index 674287c..deccacc 100644 --- a/frontend/components/dailyIncome/IncomeForm.jsx +++ b/frontend/components/dailyIncome/IncomeForm.jsx @@ -2,42 +2,44 @@ import React from 'react'; import { Form, DatePicker, InputNumber, Button } from 'antd'; const IncomeForm = ({ form, handleSubmit, handleDateChange, income, setIncome, parseIncome }) => ( -
- - - - - `Q ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')} - parser={parseIncome} - onChange={setIncome} - style={{ width: '100%' }} - /> - - - - -
+
+
+ + + + + `Q ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')} + parser={parseIncome} + onChange={setIncome} + style={{ width: '100%' }} + /> + + + + +
+
); export default IncomeForm; \ No newline at end of file diff --git a/frontend/src/pages/income/DailyIncome.jsx b/frontend/src/pages/income/DailyIncome.jsx index 27f35be..ba5d4a1 100644 --- a/frontend/src/pages/income/DailyIncome.jsx +++ b/frontend/src/pages/income/DailyIncome.jsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { Layout, Card, Typography, message } from 'antd'; +import { Layout, Card, Typography, message, Form } from 'antd'; import moment from 'moment'; import IncomeHeader from '../../../components/dailyIncome/IncomeHeader';