нет мусорки для настройки ветвления у предка файл

This commit is contained in:
Nastya 2024-12-12 17:12:37 +03:00
parent 61a9d8e913
commit 6bb0e59979

@ -585,7 +585,7 @@ const TextInputsType = ({ parentQuestion, targetQuestion, ruleIndex, setParentQu
const FileInputsType = ({ parentQuestion, targetQuestion, ruleIndex, setParentQuestion }: Props) => { const FileInputsType = ({ parentQuestion, targetQuestion, ruleIndex, setParentQuestion }: Props) => {
const theme = useTheme(); const theme = useTheme();
const quizId = Number(useParams().quizId); const quizId = Number(useParams().quizId);
console.log(parentQuestion.type)
return ( return (
<Box <Box
sx={{ sx={{
@ -614,7 +614,7 @@ const FileInputsType = ({ parentQuestion, targetQuestion, ruleIndex, setParentQu
setParentQuestion(newParentQuestion); setParentQuestion(newParentQuestion);
}} }}
> >
<DeleteIcon color={"#4D4D4D"} /> {!(parentQuestion.type === "file") && <DeleteIcon color={"#4D4D4D"} />}
</IconButton> </IconButton>
</Box> </Box>