diff --git a/src/assets/icons/questionsPage/deleteIcon.tsx b/src/assets/icons/questionsPage/deleteIcon.tsx index 6c5dc503..b6fcbcc6 100755 --- a/src/assets/icons/questionsPage/deleteIcon.tsx +++ b/src/assets/icons/questionsPage/deleteIcon.tsx @@ -1,29 +1,63 @@ import { Box } from "@mui/material"; - interface Props { - color: string; + color: string; } -export default function DeleteIcon({color}: Props) { - - return ( - - - - - - - - - - ); -} \ No newline at end of file +export default function DeleteIcon({ color = "#4D4D4D" }: Props) { + return ( + + + + + + + + + + ); +} diff --git a/src/pages/Questions/ButtonsOptions.tsx b/src/pages/Questions/ButtonsOptions.tsx index f66b9dbc..dffd5726 100644 --- a/src/pages/Questions/ButtonsOptions.tsx +++ b/src/pages/Questions/ButtonsOptions.tsx @@ -8,7 +8,12 @@ import { Box, Typography, Tooltip, IconButton, useTheme } from "@mui/material"; import HideIcon from "../../assets/icons/questionsPage/hideIcon"; import CopyIcon from "../../assets/icons/questionsPage/CopyIcon"; import DeleteIcon from "../../assets/icons/questionsPage/deleteIcon"; -import { questionStore, resetSomeField, removeQuestion } from "@root/questions"; +import { + questionStore, + resetSomeField, + copyQuestion, + removeQuestion, +} from "@root/questions"; interface Props { switchState: string; @@ -174,7 +179,10 @@ export default function ButtonsOptions({ - + copyQuestion(quizId, totalIndex)} + > - + copyQuestion(quizId, totalIndex)} + >