Commit c21e6f61 authored by janithgamage1.ed's avatar janithgamage1.ed

fix: update

Desc : update project
parent 54b2eedd
...@@ -5,7 +5,7 @@ export const marksCalculator = async (req, res) => { ...@@ -5,7 +5,7 @@ export const marksCalculator = async (req, res) => {
const targetClass = req.body.class; const targetClass = req.body.class;
const { curriculumIndex, tutorialIndex } = req.params; const { curriculumIndex, tutorialIndex } = req.params;
console.log(curriculumIndex, tutorialIndex); // console.log(curriculumIndex, tutorialIndex);
try { try {
if (curriculumIndex == 1 && tutorialIndex == 1) { if (curriculumIndex == 1 && tutorialIndex == 1) {
......
...@@ -4,6 +4,12 @@ import dotenv from "dotenv"; ...@@ -4,6 +4,12 @@ import dotenv from "dotenv";
import express from "express"; import express from "express";
import mongoose from "mongoose"; import mongoose from "mongoose";
import multer from "multer";
// Set up storage for uploaded images
const storage = multer.memoryStorage();
const upload = multer({ storage: storage });
//import routes //import routes
import curriculumRoutes from "./routes/curriculum.routes.js"; import curriculumRoutes from "./routes/curriculum.routes.js";
import feedbackRoutes from "./routes/feedback.routes.js"; import feedbackRoutes from "./routes/feedback.routes.js";
......
// import { useMemo } from 'react'; import { useMemo } from 'react';
// material-ui // material-ui
import { Theme } from '@mui/material/styles';
import { Box, useMediaQuery } from '@mui/material'; import { Box, useMediaQuery } from '@mui/material';
import { Theme } from '@mui/material/styles';
// project import // project import
import Search from './Search'; import Localization from './Localization';
import Message from './Message'; import Message from './Message';
import Profile from './Profile';
// import Localization from './Localization';
import Notification from './Notification'; import Notification from './Notification';
import Profile from './Profile';
import Search from './Search';
// import Customization from './Customization'; // import Customization from './Customization';
import MobileSection from './MobileSection'; import MobileSection from './MobileSection';
// import MegaMenuSection from './MegaMenuSection'; // import MegaMenuSection from './MegaMenuSection';
...@@ -23,13 +23,12 @@ import { MenuOrientation } from 'types/config'; ...@@ -23,13 +23,12 @@ import { MenuOrientation } from 'types/config';
// ==============================|| HEADER - CONTENT ||============================== // // ==============================|| HEADER - CONTENT ||============================== //
const HeaderContent = () => { const HeaderContent = () => {
// const { i18n, menuOrientation } = useConfig(); const { i18n, menuOrientation } = useConfig();
const { menuOrientation } = useConfig();
const downLG = useMediaQuery((theme: Theme) => theme.breakpoints.down('lg')); const downLG = useMediaQuery((theme: Theme) => theme.breakpoints.down('lg'));
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
// const localization = useMemo(() => <Localization />, [i18n]); const localization = useMemo(() => <Localization />, [i18n]);
// const megaMenu = useMemo(() => <MegaMenuSection />, []); // const megaMenu = useMemo(() => <MegaMenuSection />, []);
...@@ -38,7 +37,7 @@ const HeaderContent = () => { ...@@ -38,7 +37,7 @@ const HeaderContent = () => {
{menuOrientation === MenuOrientation.HORIZONTAL && !downLG && <DrawerHeader open={true} />} {menuOrientation === MenuOrientation.HORIZONTAL && !downLG && <DrawerHeader open={true} />}
{!downLG && <Search />} {!downLG && <Search />}
{/* {!downLG && megaMenu} */} {/* {!downLG && megaMenu} */}
{/* {!downLG && localization} */} {!downLG && localization}
{downLG && <Box sx={{ width: '100%', ml: 1 }} />} {downLG && <Box sx={{ width: '100%', ml: 1 }} />}
<Notification /> <Notification />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment