diff --git a/src/data/cardData.js b/src/data/cardData.js
index 02fd17b..34fb163 100644
--- a/src/data/cardData.js
+++ b/src/data/cardData.js
@@ -1,18 +1,12 @@
let state;
-if (typeof window !== 'undefined') {
- state = 'Maharashtra'
+if (typeof window !== "undefined") {
+ state = localStorage.getItem("stateName");
}
const cardData = [
{
id: "1",
state: state,
- boardsUploaded: 0,
- totalBoards: 1,
- details:
- "Maharashtra is a state in the southeastern coastal region of India.",
- boards: ["Maharashtra Board"],
- subjects: ["English"],
},
];
diff --git a/src/pages/course-planner/index.tsx b/src/pages/course-planner/index.tsx
index 7602a9e..497bd4b 100644
--- a/src/pages/course-planner/index.tsx
+++ b/src/pages/course-planner/index.tsx
@@ -7,6 +7,7 @@ import {
useMediaQuery,
useTheme,
Grid,
+ Divider,
} from "@mui/material";
import FolderOutlinedIcon from "@mui/icons-material/FolderOutlined";
import InsertLinkOutlinedIcon from "@mui/icons-material/InsertLinkOutlined";
@@ -21,7 +22,7 @@ import Loader from "@/components/Loader";
import { getChannelDetails } from "@/services/coursePlanner";
import { getOptionsByCategory } from "@/utils/Helper";
import coursePlannerStore from "@/store/coursePlannerStore";
-import taxonomyStore from "@/store/tanonomyStore"
+import taxonomyStore from "@/store/tanonomyStore";
const Foundation = () => {
const router = useRouter();
@@ -158,19 +159,15 @@ const Foundation = () => {
) : (
- {/*
{t("MASTER.STATE")}
- {t("COURSE_PLANNER.ACTIVITY")}
- {t("COURSE_PLANNER.COPY_LINK")}
- */}
-
+
+
+
{!selectedCardId ? (
cardData?.map((card: any) => (
@@ -227,8 +224,7 @@ const Foundation = () => {
handleCopyLink(card.state);
}}
sx={{ minWidth: "auto", padding: 0 }}
- >
-
+ >
diff --git a/src/pages/stateDetails.tsx b/src/pages/stateDetails.tsx
index 26dbf32..18ea95a 100644
--- a/src/pages/stateDetails.tsx
+++ b/src/pages/stateDetails.tsx
@@ -8,6 +8,7 @@ import {
useTheme,
useMediaQuery,
Grid,
+ Divider,
} from "@mui/material";
import FolderOutlinedIcon from "@mui/icons-material/FolderOutlined";
import InsertLinkOutlinedIcon from "@mui/icons-material/InsertLinkOutlined";
@@ -49,7 +50,7 @@ const StateDetails = () => {
const channel = store?.boards;
setBoards(channel);
- localStorage.removeItem("overallCommonSubjects")
+ localStorage.removeItem("overallCommonSubjects");
setLoading(false);
}, 1000);
};
@@ -107,16 +108,25 @@ const StateDetails = () => {
return (
-
-
+
+
{card.state}
-
-
+
+ State
+
+
+
+
+
+ Boards :
+
{boards.map((board: any, index: number) => (
{
{board?.name}
-
-
+ >
diff --git a/src/pages/subjectDetails.tsx b/src/pages/subjectDetails.tsx
index abd73e7..234ca35 100644
--- a/src/pages/subjectDetails.tsx
+++ b/src/pages/subjectDetails.tsx
@@ -9,6 +9,8 @@ import {
IconButton,
MenuItem,
Select,
+ Divider,
+ Tooltip,
} from "@mui/material";
import FolderOutlinedIcon from "@mui/icons-material/FolderOutlined";
import InsertLinkOutlinedIcon from "@mui/icons-material/InsertLinkOutlined";
@@ -81,8 +83,8 @@ const SubjectDetails = () => {
const setTaxonomySubject = taxonomyStore((state) => state.setTaxonomySubject);
useEffect(() => {
- const subjects = localStorage.getItem('overallCommonSubjects');
-
+ const subjects = localStorage.getItem("overallCommonSubjects");
+
if (subjects) {
try {
const parsedData = JSON.parse(subjects);
@@ -95,8 +97,6 @@ const SubjectDetails = () => {
setSubject([]);
}
}, []);
-
-
useEffect(() => {
const fetchFrameworkDetails = async () => {
@@ -172,7 +172,7 @@ const SubjectDetails = () => {
const handleCopyLink = (subject: any) => {};
const handleCardClick = (subject: any) => {
- setTaxonomySubject(subject?.name)
+ setTaxonomySubject(subject?.name);
router.push(`/importCsv?subject=${encodeURIComponent(subject?.name)}`);
setTaxanomySubject(subject?.name);
@@ -188,7 +188,10 @@ const SubjectDetails = () => {
if (medium) {
const getGrades = getOptionsByCategory(store?.framedata, "gradeLevel");
- const mediumAssociations = getAssociationsByCodeNew(mediumOptions, medium);
+ const mediumAssociations = getAssociationsByCodeNew(
+ mediumOptions,
+ medium
+ );
setMediumAssociations(mediumAssociations);
console.log(getGrades);
@@ -359,9 +362,12 @@ const SubjectDetails = () => {
];
const overallCommonSubjects = findOverallCommonSubjects(arrays);
-
+
setSubject(overallCommonSubjects);
- localStorage.setItem("overallCommonSubjects", JSON.stringify(overallCommonSubjects))
+ localStorage.setItem(
+ "overallCommonSubjects",
+ JSON.stringify(overallCommonSubjects)
+ );
}
};
@@ -421,7 +427,7 @@ const SubjectDetails = () => {
}}
>
{grade.map((item: any) => (