diff --git a/SurveyFrontend/src/components/MainComponent/MainComponent.tsx b/SurveyFrontend/src/components/MainComponent/MainComponent.tsx deleted file mode 100644 index 695dbf5..0000000 --- a/SurveyFrontend/src/components/MainComponent/MainComponent.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import Navigation from "../Navigation/Navigation.tsx"; -import React, {useState} from "react"; -import styles from './MainComponent.module.css' -import Survey from "../Survey/Survey.tsx"; -import SettingSurvey from "../SettingSurvey/SettingSurvey.tsx"; - -const MainComponent: React.FC = () => { - const [activePage, setActivePage] = useState( - localStorage.getItem("activePage") || "Вопросы" - ); - - const handleNavigationClick = (title: string) => { - setActivePage(title); - localStorage.setItem('activePage', title); - } - - return ( -
- - { activePage === 'Вопросы' && } - {activePage === 'Настройки' && } -
- ) -} - -export default MainComponent; \ No newline at end of file