From 73fd013e07e89b941617f6573864f5b20b22dabc Mon Sep 17 00:00:00 2001 From: swve Date: Wed, 14 Dec 2022 18:22:24 +0100 Subject: [PATCH] chore: adapt & to next.js 13 --- front/components/Drags/Element.tsx | 13 +++- front/components/Editor/Editor.tsx | 2 +- .../components/Security/HeaderProfileBox.tsx | 4 +- front/components/UI/Elements/Menu.tsx | 10 +-- front/pages/index.tsx | 14 ++-- .../org/[orgslug]/course/[courseid]/index.tsx | 78 +++++++++---------- front/pages/org/[orgslug]/courses/index.tsx | 24 +++--- front/pages/org/[orgslug]/index.tsx | 6 +- front/pages/organizations/index.tsx | 13 ++-- 9 files changed, 83 insertions(+), 81 deletions(-) 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 = () => {