11import React , { useCallback , useContext } from "react" ;
22
33import { useHelpers , useCommands } from "@remirror/react" ;
4- import SummarizeIcon from "@mui/icons-material/Summarize" ;
5- import QuestionMarkIcon from "@mui/icons-material/QuestionMark" ;
6- import ReportProblemIcon from "@mui/icons-material/ReportProblem" ;
7- import FactCheckIcon from "@mui/icons-material/FactCheck" ;
8- import { Button } from "antd" ;
4+ import {
5+ Summarize ,
6+ QuestionMark ,
7+ ReportProblem ,
8+ FactCheck
9+ } from "@mui/icons-material" ;
10+ import { IconButton } from "@mui/material" ;
911import EditorStyle from "./Editor.style" ;
1012import useCardPresence from "../hooks/useCardPresence" ;
1113import { ReviewTaskMachineContext } from "../../../machines/reviewTask/ReviewTaskMachineProvider" ;
@@ -59,7 +61,7 @@ const Editor = ({
5961 onClick : ( ) => handleInsertNode ( getContentHtml ( "data-summary-id" ) ) ,
6062 disabled : editable || summaryDisabled ,
6163 "data-cy" : "testClaimReviewsummarizeAdd" ,
62- icon : < SummarizeIcon className = "toolbar-item-icon" /> ,
64+ icon : < Summarize className = "toolbar-item-icon" /> ,
6365 } ,
6466 ] ;
6567
@@ -70,21 +72,21 @@ const Editor = ({
7072 handleInsertNode ( getContentHtml ( "data-verification-id" ) ) ,
7173 disabled : editable || verificationDisabled ,
7274 "data-cy" : "testClaimReviewverificationAdd" ,
73- icon : < FactCheckIcon className = "toolbar-item-icon" /> ,
75+ icon : < FactCheck className = "toolbar-item-icon" /> ,
7476 } ,
7577 {
7678 onClick : ( ) =>
7779 handleInsertNode ( getContentHtml ( "data-report-id" ) ) ,
7880 disabled : editable || reportDisabled ,
7981 "data-cy" : "testClaimReviewreportAdd" ,
80- icon : < ReportProblemIcon className = "toolbar-item-icon" /> ,
82+ icon : < ReportProblem className = "toolbar-item-icon" /> ,
8183 } ,
8284 {
8385 onClick : ( ) =>
8486 handleInsertNode ( getContentHtml ( "data-question-id" ) ) ,
8587 disabled : editable ,
8688 "data-cy" : "testClaimReviewquestionsAdd" ,
87- icon : < QuestionMarkIcon className = "toolbar-item-icon" /> ,
89+ icon : < QuestionMark className = "toolbar-item-icon" /> ,
8890 }
8991 ) ;
9092 }
@@ -98,14 +100,14 @@ const Editor = ({
98100 < div className = "toolbar" >
99101 { actions ? (
100102 actions . map ( ( { icon, ...props } ) => (
101- < Button
103+ < IconButton
102104 key = { props [ "data-cy" ] }
103105 className = "toolbar-item"
104106 style = { { outline : "none" , border : "none" } }
105107 { ...props }
106108 >
107109 { icon }
108- </ Button >
110+ </ IconButton >
109111 ) )
110112 ) : (
111113 < > </ >
0 commit comments