diff --git a/front/components/Drags/Element.tsx b/front/components/Drags/Element.tsx
index 3d5d30d0..319dd6ca 100644
--- a/front/components/Drags/Element.tsx
+++ b/front/components/Drags/Element.tsx
@@ -11,11 +11,16 @@ function Element(props: any) {
{(provided) => (
{props.element.name}
-
-
+
+
-
-
+
+
)}
diff --git a/front/components/Editor/Editor.tsx b/front/components/Editor/Editor.tsx
index c5ba7ea6..f4f6c5d7 100644
--- a/front/components/Editor/Editor.tsx
+++ b/front/components/Editor/Editor.tsx
@@ -7,7 +7,7 @@ import { AuthContext } from "../Security/AuthProvider";
import learnhouseIcon from "public/learnhouse_icon.png";
import { ToolbarButtons } from "./Toolbar/ToolbarButtons";
import { motion, AnimatePresence } from "framer-motion";
-import Image from "next/image";
+import Image from "next/legacy/image";
import styled from "styled-components";
import { getBackendUrl } from "../../services/config";
import { SlashIcon } from "@radix-ui/react-icons";
diff --git a/front/components/Security/HeaderProfileBox.tsx b/front/components/Security/HeaderProfileBox.tsx
index 29a1bc0c..b5f27952 100644
--- a/front/components/Security/HeaderProfileBox.tsx
+++ b/front/components/Security/HeaderProfileBox.tsx
@@ -14,12 +14,12 @@ export const HeaderProfileBox = () => {
diff --git a/front/components/UI/Elements/Menu.tsx b/front/components/UI/Elements/Menu.tsx
index e07ec65a..ff741359 100644
--- a/front/components/UI/Elements/Menu.tsx
+++ b/front/components/UI/Elements/Menu.tsx
@@ -4,7 +4,7 @@ import { HeaderProfileBox } from "../../Security/HeaderProfileBox";
import learnhouseIcon from "public/learnhouse_icon.png";
import learnhouseLogo from "public/learnhouse_logo.png";
import Link from "next/link";
-import Image from "next/image";
+import Image from "next/legacy/image";
import { useRouter } from "next/router";
export const Menu = () => {
@@ -17,9 +17,9 @@ export const Menu = () => {
-
-
-
+
+
+
@@ -33,7 +33,7 @@ export const Menu = () => {
-
- Courses
+ Courses
- Collections
diff --git a/front/pages/index.tsx b/front/pages/index.tsx
index cf64a4ae..5c40c3c5 100644
--- a/front/pages/index.tsx
+++ b/front/pages/index.tsx
@@ -2,7 +2,7 @@ import type { NextPage } from "next";
import { motion } from "framer-motion";
import styled from "styled-components";
import learnhouseBigIcon from "public/learnhouse_bigicon.png";
-import Image from "next/image";
+import Image from "next/legacy/image";
import Link from "next/link";
const Home: NextPage = () => {
@@ -38,15 +38,15 @@ const Home: NextPage = () => {
>
diff --git a/front/pages/org/[orgslug]/course/[courseid]/index.tsx b/front/pages/org/[orgslug]/course/[courseid]/index.tsx
index 4531e916..8b7dfb18 100644
--- a/front/pages/org/[orgslug]/course/[courseid]/index.tsx
+++ b/front/pages/org/[orgslug]/course/[courseid]/index.tsx
@@ -41,31 +41,30 @@ const CourseIdPage = () => {
Course
{courseInfo.course.name}{" "}
-
-
-
-
+
+
+
+
{" "}
{courseInfo.chapters.map((chapter: any) => {
- return (
- <>
- {chapter.elements.map((element: any) => {
- return (
- <>
-
-
-
-
- {" "}
- >
- );
- })}
-
- >
- );
+ return <>
+ {chapter.elements.map((element: any) => {
+ return <>
+
+
+
+
+ {" "}
+ >;
+ })}
+
+ >;
})}
@@ -82,26 +81,25 @@ const CourseIdPage = () => {
Course Lessons
{courseInfo.chapters.map((chapter: any) => {
- return (
- <>
- Chapter : {chapter.name}
- {chapter.elements.map((element: any) => {
- return (
- <>
-
- Element {element.name}
-
-
-
-
- {" "}
-
- >
- );
- })}
-
- >
- );
+ return <>
+ Chapter : {chapter.name}
+ {chapter.elements.map((element: any) => {
+ return <>
+
+ Element {element.name}
+
+
+
+
+ {" "}
+
+ >;
+ })}
+
+ >;
})}
)}
diff --git a/front/pages/org/[orgslug]/courses/index.tsx b/front/pages/org/[orgslug]/courses/index.tsx
index 711dc6f7..fb862feb 100644
--- a/front/pages/org/[orgslug]/courses/index.tsx
+++ b/front/pages/org/[orgslug]/courses/index.tsx
@@ -50,9 +50,9 @@ const CoursesIndexPage = () => {
{orgslug} courses :{" "}
-
-
-
+
+
+
{" "}
@@ -64,20 +64,20 @@ const CoursesIndexPage = () => {
{courses.map((course: any) => (
))}
diff --git a/front/pages/org/[orgslug]/index.tsx b/front/pages/org/[orgslug]/index.tsx
index 67521df1..8ba5b3da 100644
--- a/front/pages/org/[orgslug]/index.tsx
+++ b/front/pages/org/[orgslug]/index.tsx
@@ -15,9 +15,9 @@ const OrgHomePage = () => {
Welcome {orgslug} 👋🏻
-
-
-
+
+
+
diff --git a/front/pages/organizations/index.tsx b/front/pages/organizations/index.tsx
index b8485cbd..3cd1f6d7 100644
--- a/front/pages/organizations/index.tsx
+++ b/front/pages/organizations/index.tsx
@@ -30,14 +30,13 @@ const Organizations = () => {
return (
-
Your Organizations{" "}
-
-
-
+
+
+
@@ -48,9 +47,9 @@ const Organizations = () => {
{userOrganizations.map((org: any) => (
-
- {org.name}
-
+
+
{org.name}
+