fixed getting data for completing a survey
This commit is contained in:
parent
88dcb63232
commit
2ec9354fc1
13 changed files with 128 additions and 55 deletions
|
|
@ -10,7 +10,6 @@ const Header: React.FC = () => {
|
|||
|
||||
const isCreateSurveyActive = location.pathname.startsWith('/survey/create');
|
||||
const isMySurveysActive = location.pathname === '/my-surveys';
|
||||
const isCompleteSurveyActive = location.pathname === '/complete-survey';
|
||||
|
||||
const isSurveyViewPage = location.pathname.startsWith('/survey/') &&
|
||||
!location.pathname.startsWith('/survey/create');
|
||||
|
|
@ -37,13 +36,6 @@ const Header: React.FC = () => {
|
|||
Мои опросы
|
||||
{(isMySurveysActive || isSurveyViewPage) && <hr className={styles.activeLine}/>}
|
||||
</Link>
|
||||
<Link
|
||||
to='/complete-survey'
|
||||
className={`${styles.pageLink} ${isCompleteSurveyActive ? styles.active : ''}`}
|
||||
>
|
||||
Прохождение опроса
|
||||
{isCompleteSurveyActive && <hr className={styles.activeLine}/>}
|
||||
</Link>
|
||||
</nav>
|
||||
<Account href={'/profile'} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue