fix: branchOptions
This commit is contained in:
parent
9eea74c18e
commit
8c983cb91a
@ -129,7 +129,6 @@ export default function ButtonsOptions({
|
||||
{buttonSetting.map(({ icon, title, value, myFunc }) => (
|
||||
<Box key={value}>
|
||||
{value === "branching" ? (
|
||||
quize.config.type === "quize" && (
|
||||
<Tooltip
|
||||
arrow
|
||||
placement="right"
|
||||
@ -190,14 +189,8 @@ export default function ButtonsOptions({
|
||||
{isWrappMiniButtonSetting ? null : title}
|
||||
</MiniButtonSetting>
|
||||
</Tooltip>
|
||||
)
|
||||
) : (
|
||||
<>
|
||||
{(value !== "setting" ||
|
||||
quize.config.type === "quize" ||
|
||||
(value === "setting" &&
|
||||
quize.config.type === "form" &&
|
||||
question.type)) && (
|
||||
<MiniButtonSetting
|
||||
key={title}
|
||||
onClick={() => {
|
||||
@ -224,12 +217,10 @@ export default function ButtonsOptions({
|
||||
{icon}
|
||||
{isWrappMiniButtonSetting ? null : title}
|
||||
</MiniButtonSetting>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
))}
|
||||
{quize.config.type === "quize" && (
|
||||
<>
|
||||
<MiniButtonSetting
|
||||
onClick={() => setOpenedReallyChangingModal(true)}
|
||||
@ -262,7 +253,6 @@ export default function ButtonsOptions({
|
||||
<VectorQuestions style={{ color: "#FC712F", fontSize: "9px" }} />
|
||||
</MiniButtonSetting>
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
|
@ -149,7 +149,6 @@ export default function ButtonsOptionsAndPict({
|
||||
/>
|
||||
{isIconMobile ? null : "Подсказка"}
|
||||
</MiniButtonSetting>
|
||||
{quize.config.type === "quize" && (
|
||||
<>
|
||||
<Tooltip
|
||||
arrow
|
||||
@ -251,9 +250,7 @@ export default function ButtonsOptionsAndPict({
|
||||
? theme.palette.brightPurple.main
|
||||
: "transparent",
|
||||
color:
|
||||
switchState === "image"
|
||||
? "#ffffff"
|
||||
: theme.palette.grey3.main,
|
||||
switchState === "image" ? "#ffffff" : theme.palette.grey3.main,
|
||||
"&:hover": {
|
||||
color:
|
||||
switchState === "image" ? theme.palette.grey3.main : null,
|
||||
@ -302,7 +299,6 @@ export default function ButtonsOptionsAndPict({
|
||||
<VectorQuestions style={{ color: "#FC712F", fontSize: "9px" }} />
|
||||
</MiniButtonSetting>
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
|
Loading…
Reference in New Issue
Block a user