This commit is contained in:
Mikola 2023-12-10 03:24:55 +03:00
parent 178fd4362a
commit cf827cc185
3 changed files with 12 additions and 6 deletions

View File

@ -36,10 +36,14 @@ export const Navigation = () => {
path: "/payouts", path: "/payouts",
name: "Выплаты", name: "Выплаты",
}, },
{
path: "/quiz",
name: "Тесты"
},
{ {
path: "/settings", path: "/settings",
name: "Настройки", name: "Настройки",
}, }
], ],
partner: [ partner: [
{ {
@ -91,7 +95,7 @@ export const Navigation = () => {
<nav className="profileHeader__nav"> <nav className="profileHeader__nav">
{navInfo[user].map((link, index) => { {navInfo[user].map((link, index) => {
return ( return (
<NavLink key={index} end to={`/profile${link.path}`}> <NavLink key={index} end to={link.path === '/quiz' ? link.path : `/profile${link.path}`}>
{link.name} {link.name}
</NavLink> </NavLink>
); );

View File

@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux"; import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { questionnairesSelector, setQuestionnaires } from "@redux/quizSlice"; // import { questionnairesSelector, setQuestionnaires } from "@redux/quizSlice";
import { apiRequest } from "@api/request"; import { apiRequest } from "@api/request";
@ -10,7 +10,8 @@ import CategoriesItem from "@components/CategoriesItem/CategoriesItem";
import { Footer } from "@components/Common/Footer/Footer"; import { Footer } from "@components/Common/Footer/Footer";
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs"; import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader"; import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
import { HeadBottom } from "@components/features/Candidate-lk/HeadBottom"; import { Navigation } from "@components/Navigation/Navigation";
// import { HeadBottom } from "@components/features/Candidate-lk/HeadBottom";
import { CardAvailableTest } from "@components/features/quiz/CardAviableTest"; import { CardAvailableTest } from "@components/features/quiz/CardAviableTest";
import { SelectedCategory } from "@components/features/quiz/SelectedCategory"; import { SelectedCategory } from "@components/features/quiz/SelectedCategory";
@ -110,7 +111,8 @@ export const QuizPage = () => {
return ( return (
<div className="quiz-page"> <div className="quiz-page">
<ProfileHeader /> <ProfileHeader />
<HeadBottom /> <Navigation />
{/*<HeadBottom />*/}
<div className="quiz-page__container"> <div className="quiz-page__container">
<ProfileBreadcrumbs <ProfileBreadcrumbs
links={[ links={[

View File

@ -7,7 +7,7 @@
flex-direction: column; flex-direction: column;
&__container { &__container {
max-width: 1160px; max-width: 1160px;
margin: 0 auto 42px auto; margin: 23px auto 42px auto;
flex: 1 1 auto; flex: 1 1 auto;
width: 100%; width: 100%;
padding: 0 15px; padding: 0 15px;