quiz
This commit is contained in:
parent
cf827cc185
commit
15183d3ada
@ -38,12 +38,12 @@ export const Navigation = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/quiz",
|
path: "/quiz",
|
||||||
name: "Тесты"
|
name: "Тесты",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/settings",
|
path: "/settings",
|
||||||
name: "Настройки",
|
name: "Настройки",
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
partner: [
|
partner: [
|
||||||
{
|
{
|
||||||
@ -95,7 +95,11 @@ 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={link.path === '/quiz' ? link.path : `/profile${link.path}`}>
|
<NavLink
|
||||||
|
key={index}
|
||||||
|
end
|
||||||
|
to={link.path === "/quiz" ? link.path : `/profile${link.path}`}
|
||||||
|
>
|
||||||
{link.name}
|
{link.name}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
);
|
);
|
||||||
|
@ -3,14 +3,13 @@ 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";
|
||||||
|
|
||||||
import CategoriesItem from "@components/CategoriesItem/CategoriesItem";
|
import CategoriesItem from "@components/CategoriesItem/CategoriesItem";
|
||||||
import { Footer } from "@components/Common/Footer/Footer";
|
import { Footer } from "@components/Common/Footer/Footer";
|
||||||
|
import { Navigation } from "@components/Navigation/Navigation";
|
||||||
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 { Navigation } from "@components/Navigation/Navigation";
|
|
||||||
// import { HeadBottom } from "@components/features/Candidate-lk/HeadBottom";
|
// 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";
|
||||||
|
Loading…
Reference in New Issue
Block a user