fix
This commit is contained in:
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
@ -32,7 +32,7 @@ export const HeaderPageTestsQuiz = ({ isVisibilityButton }) => {
|
||||
</div>
|
||||
{isVisibilityButton && (
|
||||
<Link
|
||||
to={"/quiz/instruction"}
|
||||
to={"/Quiz/instruction"}
|
||||
className="quiz-btn quiz-btn_restriction"
|
||||
>
|
||||
Пройти
|
||||
|
@ -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)}
|
||||
>
|
||||
|
@ -58,7 +58,7 @@ export const TaskQuiz = ({ timer }) => {
|
||||
text: "Тест успешно пройден",
|
||||
type: "success"
|
||||
});
|
||||
navigate("/quiz");
|
||||
navigate("/Quiz");
|
||||
// if (String(res?.status)[0] !== "2") {
|
||||
// showNotification({
|
||||
// show: true,
|
||||
|
Reference in New Issue
Block a user