Skip to content

Commit

Permalink
Merge branch 'release-1.0.0' into seventy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aar-if authored Dec 2, 2024
2 parents a9f6159 + 82513b5 commit cab6bc1
Show file tree
Hide file tree
Showing 49 changed files with 1,376 additions and 870 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "export NEXT_PRIVATE_LOCAL_WEBPACK=true && next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand Down
11 changes: 6 additions & 5 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@
"PAGE_NOT_FOUND": "Page not found",
"ACCESS_DENIED": "Access Denied",
"YOU_DONT_HAVE_PERMISSION_TO_ACCESS_THIS_PAGE": "You don't have access to this page",
"RETURN_TO_LOGIN": "Return to Login"
"RETURN_TO_LOGIN": "Return to Login",
"COHORT_CODE_EXISTS": "Code already exists"

},
"LOGIN_PAGE": {
Expand Down Expand Up @@ -313,10 +314,10 @@
"RENAME": "Rename",
"CENTER_RENAMED": "Center Renamed Successfully!",
"SEND_REQUEST": "Send Request",
"SURE_DELETE_CENTER": "Are you sure you want to Delete ",
"CENTER_UPDATE_SUCCESSFULLY": "Center has been Successfully Updated",
"CENTER_DELETE_SUCCESSFULLY": "Center has been Successfully Deleted",
"CENTER_CREATED_SUCCESSFULLY": "Center Created Successfully",
"SURE_DELETE_CENTER": "Are you sure you want to delete ",
"CENTER_UPDATE_SUCCESSFULLY": "Center has been successfully updated",
"CENTER_DELETE_SUCCESSFULLY": "Center has been successfully deleted",
"CENTER_CREATED_SUCCESSFULLY": "Center Created successfully",
"SEARCHBAR_PLACEHOLDER": "Search Center..",
"CENTER_UPDATE_FAILED": "Something went wrong while updating center",
"YOU_CANT_DELETE_CENTER_HAS_ACTIVE_LEARNERS": "You can't delete the center because it has {{activeMembers}} Active Learners"
Expand Down
9 changes: 9 additions & 0 deletions src/assets/images/Epub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/HTML.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/MP4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/PDF.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/Qml.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/bgEpub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/bgHtml.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/bgMP4 .svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/bgPDF.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/assets/images/bgQml.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/assets/images/bgYouTube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/decorationBg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/assets/images/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/components/AddBlockModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const AddBlockModal: React.FC<AddBlockModalProps> = ({
const districts = data?.result?.values || [];
setDistrictsOptionRead(districts);

const districtNameArray = districts.map((item: any) => item.label);
const districtNameArray = districts.map((item: any) => item?.label?.toLowerCase());
setDistrictNameArr(districtNameArray);

const districtCodeArray = districts.map((item: any) => item.value);
Expand Down Expand Up @@ -162,7 +162,7 @@ export const AddBlockModal: React.FC<AddBlockModalProps> = ({

const matchingDistrict = districtsOptionRead.find(
(district: { label: string }) =>
district.label === transformedName
district?.label?.toLowerCase() === transformedName?.toLowerCase()
);
return {
label: transformedName,
Expand All @@ -176,7 +176,7 @@ export const AddBlockModal: React.FC<AddBlockModalProps> = ({
}
)
.filter((district: { label: any }) =>
districtNameArr.includes(district.label)
districtNameArr.includes(district?.label?.toLowerCase())
);
setDistricts(filteredDistrictData);
} catch (error) {
Expand Down Expand Up @@ -403,4 +403,4 @@ export const AddBlockModal: React.FC<AddBlockModalProps> = ({
</DialogActions>
</Dialog>
);
};
};
2 changes: 1 addition & 1 deletion src/components/DeleteUserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ const DeleteUserModal: React.FC<DeleteUserModalProps> = ({
);
};

export default DeleteUserModal;
export default DeleteUserModal;
10 changes: 8 additions & 2 deletions src/components/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const DynamicForm: React.FC<DynamicFormProps> = ({
};

const cleanedFormData = cleanAndReplace(event.formData);
console.log("cleanedFormData---", cleanedFormData);

console.log("Form data changed:", cleanedFormData);

setLocalFormData(cleanedFormData);
Expand Down Expand Up @@ -247,8 +249,12 @@ const DynamicForm: React.FC<DynamicFormProps> = ({
return error;
});
};
useEffect(() => {
// setSubmittedButtonStatus(false);
useEffect(() => {

const updatedFormData = Object.fromEntries(
Object.entries(localFormData)?.map(([key, value]) => [key, value === "undefined" ? "" : value])
);
setLocalFormData(updatedFormData);
}, []);
return (
<div>
Expand Down
Loading

0 comments on commit cab6bc1

Please sign in to comment.