From 58ade8be9b81b52fce3aca3aefbf0f847f904f6e Mon Sep 17 00:00:00 2001 From: Nastya Date: Sun, 17 Dec 2023 00:29:18 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BA=D0=B2=D0=B8=D0=B7=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 1 - src/model/quizSettings.ts | 2 +- src/ui_kit/Sidebar.tsx | 8 ++++---- src/ui_kit/switchStepPages.tsx | 6 +++--- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d717a830..81c5ada5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -31,7 +31,6 @@ const routeslink = [ { path: "/contacts", page: , header: true, sidebar: true }, { path: "/result", page: , header: true, sidebar: true }, { path: "/settings", page: , header: true, sidebar: true }, - { path: "/install", page: , header: true, sidebar: true }, ] as const; export default function App() { diff --git a/src/model/quizSettings.ts b/src/model/quizSettings.ts index d11d871e..db37e5c4 100644 --- a/src/model/quizSettings.ts +++ b/src/model/quizSettings.ts @@ -14,7 +14,7 @@ export const quizSetupSteps = [ // { stepperText: "Оценка графа карты вопросов", sidebarText: "Карта вопросов", sidebarIcon: QuestionsMapIcon }, { stepperText: "Настройте форму контактов", sidebarText: "Форма контактов", sidebarIcon: ContactBookIcon }, { stepperText: "Установите квиз", sidebarText: "Установка квиза", sidebarIcon: FlowArrowIcon }, - { stepperText: "Запустите рекламу", sidebarText: "Запуск рекламы", sidebarIcon: MegaphoneIcon }, + // { stepperText: "Запустите рекламу", sidebarText: "Запуск рекламы", sidebarIcon: MegaphoneIcon }, ] as const; export const maxQuizSetupSteps = quizSetupSteps.length; diff --git a/src/ui_kit/Sidebar.tsx b/src/ui_kit/Sidebar.tsx index 6baf9a4a..0d448405 100755 --- a/src/ui_kit/Sidebar.tsx +++ b/src/ui_kit/Sidebar.tsx @@ -111,7 +111,7 @@ export default function Sidebar() { ); })} - {!isMenuCollapsed && ( + {/* {!isMenuCollapsed && ( Настройки квиза - )} + )} */} - {quizSettingsMenuItems.map((menuItem, index) => { + {/* {quizSettingsMenuItems.map((menuItem, index) => { const Icon = menuItem[0]; const totalIndex = index + quizSetupSteps.length; const isActive = currentStep === totalIndex + 1; @@ -154,7 +154,7 @@ export default function Sidebar() { } /> ); - })} + })} */} ); diff --git a/src/ui_kit/switchStepPages.tsx b/src/ui_kit/switchStepPages.tsx index 79190b35..b89b755a 100755 --- a/src/ui_kit/switchStepPages.tsx +++ b/src/ui_kit/switchStepPages.tsx @@ -33,9 +33,9 @@ export default function SwitchStepPages({ case 1: return quizType === "form" ? : ; case 2: return ; case 3: return ; - case 4: return ; - case 5: return ; - case 6: return <>Реклама; + case 4: return ; + // case 5: return ; + // case 6: return <>Реклама; default: throw new Error(`Invalid quiz setup step: ${activeStep}`); } }