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