Update
This commit is contained in:
@@ -59,8 +59,10 @@ export const investmentDocSchema = yup.object().shape({
|
||||
// console.log("File size:", value ? value.size : "No file");
|
||||
// return value && value.size <= 2 * 1024 * 1024; // 2MB in bytes
|
||||
// })
|
||||
fileName: yup.string().required("File name is required"),
|
||||
fileName: yup.string().required("File name is required")
|
||||
.max(25, "File name must be at most 25 characters"), // Maximum length validation,
|
||||
documentNameArabic: yup.string().required("File name Arabic is required")
|
||||
.max(25, "File name must be at most 30 characters"),
|
||||
});
|
||||
|
||||
const InvestmentDocuments = ({
|
||||
@@ -204,10 +206,11 @@ const InvestmentDocuments = ({
|
||||
<FormLabel fontSize="sm">File Name</FormLabel>
|
||||
<Input
|
||||
name="fileName"
|
||||
{...register("fileName")}
|
||||
{...register("fileName")}
|
||||
fontSize="sm"
|
||||
type="text"
|
||||
size="sm"
|
||||
maxLength={25} // Maximum length constraint in the input field
|
||||
/>
|
||||
{errors.fileName && (
|
||||
<Text mt={1} fontSize="xs" fontWeight={500} color="red">
|
||||
@@ -226,6 +229,7 @@ const InvestmentDocuments = ({
|
||||
type="text"
|
||||
size="sm"
|
||||
textAlign={'right'}
|
||||
maxLength={30} // Maximum length constraint in the input field
|
||||
/>
|
||||
{errors.documentNameArabic && (
|
||||
<Text mt={1} fontSize="xs" fontWeight={500} color="red">
|
||||
|
||||
@@ -119,7 +119,7 @@ const Kyc = () => {
|
||||
<FormControl></FormControl>
|
||||
</HStack>
|
||||
<Heading fontSize={"md"} fontWeight={500}>
|
||||
Occupation
|
||||
Additional Questions
|
||||
</Heading>
|
||||
<Divider />
|
||||
<HStack spacing={4} mb={4}>
|
||||
@@ -158,10 +158,6 @@ const Kyc = () => {
|
||||
<FormControl></FormControl>
|
||||
</HStack> */}
|
||||
</Box>
|
||||
<Heading fontSize={"md"} fontWeight={500}>
|
||||
Additional Questions
|
||||
</Heading>
|
||||
<Divider />
|
||||
<Box>
|
||||
<Heading fontSize={"md"} fontWeight={500}>
|
||||
Investor Eligibilty Notice
|
||||
|
||||
@@ -322,7 +322,7 @@ const AddSponser = () => {
|
||||
isOpen={alert}
|
||||
onClose={() => setAlert(false)}
|
||||
alertHandler={handleConfirm}
|
||||
message={"Are you sure you want to add this?"}
|
||||
message={id ? "Are you sure you want to update this?" : "Are you sure you want to add this?"}
|
||||
isLoading={isLoadingBtn}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user