This commit is contained in:
2024-07-18 14:32:42 +05:30
21 changed files with 1571 additions and 99 deletions

View File

@@ -46,7 +46,7 @@ const EditExchangeRate = ({ id, setIsLoading, updateHistory }) => {
const [effectFrom, setEffectFrom] = useState("");
const [effectTill, setEffectTill] = useState("");
const [rate, setRate] = useState("");
const [rate, setRate] = useState("");
const [alert, setAlert] = useState(false);
useEffect(() => {

View File

@@ -172,7 +172,7 @@ const ExchangeRate = () => {
setIsLoading={setIsLoading}
id={item.id}
history={history}
/>
/>
</Box>
),
}));
@@ -196,7 +196,7 @@ const ExchangeRate = () => {
<HStack
display={"flex"}
justifyContent={"space-between"}
ps={1}
ps={1}
pe={1}
pb={4}
pt={4}

View File

@@ -115,7 +115,7 @@ const AddInvestmentType = () => {
section: "Personal Details",
},
{
label: "Description Name",
label: "Description Name",
name: "description",
type: "text",
isRequired: true,
@@ -129,42 +129,6 @@ const AddInvestmentType = () => {
arabic: true,
section: "Personal Details",
},
// {
// label: "Bank name",
// name: "bankName",
// type: "text",
// isRequired: true,
// section: "Bank Details",
// },
// {
// label: "Account Name",
// name: "accountNumber",
// type: "text",
// isRequired: true,
// section: "Bank Details",
// },
// {
// label: "SWIFT/BIC Code",
// name: "swiftCode",
// type: "number",
// isRequired: true,
// section: "Bank Details",
// },
// {
// label: "Account Email",
// name: "bankEmail",
// type: "text",
// isRequired: true,
// section: "Bank Details",
// },
// {
// label: "Annual yeild",
// name: "annualyield",
// type: "number",
// helperText: "Please enter value in percentage",
// isRequired: true,
// section: "Investment Object Details",
// },
];
const groupedFields = formFields.reduce((groups, field) => {

View File

@@ -54,7 +54,7 @@ const InvestmentType = () => {
useEffect(() => {
// Simulate loading
const timer = setTimeout(() => {
setIsLoading(false);
setIsLoading(false);
}, 1500);
// Cleanup the timer on component unmount

View File

@@ -32,7 +32,7 @@ export const addSponser = yup.object().shape({
accountNumber: yup.string().required("Account Number is required"),
swiftCode: yup.string().required("SWIFT/BIC Code is required"),
bankEmail: yup.string().email("Invalid email format"),
// routingNumber: yup.string().required("Routing Number is required"),
// iban: yup.string().required("IBAN is required"),
// accountType: yup.string().required("Account Type is required"),