diff --git a/packages/nulp_elite/src/components/learnathon/LernModal.js b/packages/nulp_elite/src/components/learnathon/LernModal.js
index b21c6651..19b3248a 100644
--- a/packages/nulp_elite/src/components/learnathon/LernModal.js
+++ b/packages/nulp_elite/src/components/learnathon/LernModal.js
@@ -16,7 +16,6 @@ const LernModal = () => {
const [lernUser, setLernUser] = useState([]);
const _userId = util.userId();
-
const handleClose = () => {
setIsModalOpen(false);
sessionStorage.setItem('isModalShown', 'true'); // Set flag to not show modal again
@@ -53,7 +52,7 @@ const LernModal = () => {
p: 4,
overflow: "auto",
};
-
+ console.log(lernUser,'lernUser form modal');
return (
{
- {lernUser === 'nulp-lern' ? (
+ {lernUser === 'nulp-learn' ? (
{t("CREATE_CONTENT")}
) : (
{t("REQUEST_TO_CREATE")}
diff --git a/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js b/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js
index d4e0e581..ebc17224 100644
--- a/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js
+++ b/packages/nulp_elite/src/pages/learnathon/lernCreatorForm.js
@@ -1,4 +1,4 @@
-import React, { useState } from "react";
+import React, { useState, useEffect } from "react";
import {
TextField,
Button,
@@ -9,8 +9,16 @@ import {
IconButton,
Typography,
Box,
+ Grid,
+ Paper,
+ Divider,
} from "@mui/material";
import HelpOutlineIcon from "@mui/icons-material/HelpOutline";
+import Footer from "components/Footer";
+import Header from "components/header";
+// const [globalSearchQuery, setGlobalSearchQuery] = useState();
+// // location.state?.globalSearchQuery || undefined
+// const [searchQuery, setSearchQuery] = useState(globalSearchQuery || "");
const categories = [
"State / UT / SPVs / ULBs / Any Other",
@@ -37,11 +45,11 @@ const LernCreatorForm = () => {
userName: "",
email: "",
mobileNumber: "",
+ submissionIcon: "",
category: "",
organisation: "",
department: "",
theme: "",
- otherTheme: "",
title: "",
description: "",
file: null,
@@ -64,6 +72,12 @@ const LernCreatorForm = () => {
file: e.target.files[0],
});
};
+ const handleIconChange = (e) => {
+ setFormData({
+ ...formData,
+ submissionIcon: e.target.files[0],
+ });
+ };
const handleCheckboxChange = (e) => {
setFormData({
@@ -104,192 +118,250 @@ const LernCreatorForm = () => {
};
return (
-
-
- Lern Creator Form
-
+ <>
+
+
+
+
+ Upload Learnathon Submission
+
-
+ Your submission will be used for NULP purposes only and your
+ personal details will not be disclosed to any entity.
+
-
-
-
-
+
+
+
+
+
+
+
+
+ >
);
};
diff --git a/packages/nulp_elite/src/pages/search/DomainList.js b/packages/nulp_elite/src/pages/search/DomainList.js
index 65557d7b..d38a0483 100644
--- a/packages/nulp_elite/src/pages/search/DomainList.js
+++ b/packages/nulp_elite/src/pages/search/DomainList.js
@@ -402,6 +402,8 @@ const DomainList = ({ globalSearchQuery }) => {
onMobileSearch();
}
};
+ console.log(lernUser, 'lernUser from dashboard');
+
return (
@@ -502,7 +504,32 @@ const DomainList = ({ globalSearchQuery }) => {
>
{error &&
{error}}
-
+
+
+
+
+
+ {t("LERN_title")}
+
+
+
+
+ {t("LERN_MESSAGE")}
+
+
+
+
+ {lernUser === 'nulp-learn' ? (
+ {t("CREATE_CONTENT")}
+ ) : (
+ {t("REQUEST_TO_CREATE")}
+ )}
+
+
+
+
+