This commit is contained in:
Mikola
2024-02-01 23:32:02 +03:00
parent cf1bbf136e
commit 903ae0062c
11 changed files with 41 additions and 42 deletions

View File

@ -35,7 +35,7 @@ export const Navigation = () => {
name: "Выплаты"
},
{
path: "/quiz",
path: "/Quiz",
name: "Тесты"
},
{
@ -96,7 +96,7 @@ export const Navigation = () => {
<NavLink
key={index}
end
to={link.path === "/quiz" ? link.path : `/profile${link.path}`}
to={link.path === "/Quiz" ? link.path : `/profile${link.path}`}
>
{link.name}
</NavLink>

View File

@ -50,8 +50,7 @@ export const ProfileCalendar = () => {
if (!requestDates) {
return;
}
apiRequest(
`/reports/index?${requestDates}&user_id =${localStorage.getItem("id")}`
apiRequest(`/reports/index?${requestDates}&user_id=${localStorage.getItem("id")}`
).then((reports) => {
let spendTime = 0;

View File

@ -56,7 +56,7 @@ export const SideBar = () => {
<Link to={"/tracker-intro"}>Трекер</Link>
</li>
<li>
<Link to={"/quiz"}>Тесты</Link>
<Link to={"/Quiz"}>Тесты</Link>
</li>
<li>
<a href="#">Школа</a>

View File

@ -32,7 +32,7 @@ export const HeaderPageTestsQuiz = ({ isVisibilityButton }) => {
</div>
{isVisibilityButton && (
<Link
to={"/quiz/instruction"}
to={"/Quiz/instruction"}
className="quiz-btn quiz-btn_restriction"
>
Пройти

View File

@ -44,7 +44,7 @@ export const MyTestsQuiz = ({ listTests }) => {
</h3>
<div className="item-test__body test-data">
<Link
to={"/quiz/interjacent"}
to={"/Quiz/interjacent"}
className="quiz-btn"
onClick={() => recordSelectedTest(item)}
>

View File

@ -58,7 +58,7 @@ export const TaskQuiz = ({ timer }) => {
text: "Тест успешно пройден",
type: "success"
});
navigate("/quiz");
navigate("/Quiz");
// if (String(res?.status)[0] !== "2") {
// showNotification({
// show: true,