open page settings
This commit is contained in:
parent
1ebd915064
commit
ae51520966
7 changed files with 70 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ 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('Вопросы');
|
||||
|
|
@ -16,7 +17,8 @@ const MainComponent: React.FC = () => {
|
|||
activePage={activePage}
|
||||
onNavigationClick={handleNavigationClick}
|
||||
/>
|
||||
<Survey />
|
||||
{ activePage === 'Вопросы' && <Survey />}
|
||||
{activePage === 'Настройки' && <SettingSurvey />}
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue