From fa851ca038918cbff4f235bd0a4630b9e7fe48ae Mon Sep 17 00:00:00 2001 From: Lucas Lobato Date: Fri, 20 Dec 2024 09:54:46 -0300 Subject: [PATCH] Migrate Grid and Box Components MUI from Editor --- src/components/Editor/Editor.tsx | 55 +++++++++++++++----------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/src/components/Editor/Editor.tsx b/src/components/Editor/Editor.tsx index df3eb193c..06102b372 100644 --- a/src/components/Editor/Editor.tsx +++ b/src/components/Editor/Editor.tsx @@ -1,9 +1,8 @@ import React, { useEffect } from "react"; import { Remirror, ThemeProvider, useRemirror } from "@remirror/react"; import { AllStyledComponent } from "@remirror/styles/emotion"; -import { Affix, Col, Row } from "antd"; import { useAtom } from "jotai"; - +import { Grid, Box } from "@mui/material"; import { debateAtom } from "../../atoms/debate"; import colors from "../../styles/colors"; import AddPersonalityEditorButton from "./AddPersonalityEditorButton"; @@ -73,14 +72,15 @@ const Editor = ({ claim, sitekey }: IEditorProps) => { }; return ( - - + - + { - -
- {personalities.map((personality) => { - return ( - - ); - })} -
-
+ + {personalities.map((personality) => ( + + ))} + {
-
+ ); };