Fixed img in components
This commit is contained in:
@ -1,19 +1,18 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { useNavigate, useParams } from "react-router";
|
||||
|
||||
import { ProfileBreadcrumbs } from "../../components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||
import SideBar from "../../components/SideBar/SideBar";
|
||||
import AuthHeader from "../../components/AuthHeader/AuthHeader";
|
||||
import { Footer } from "../../components/Footer/Footer";
|
||||
import arrowBtn from "../../images/arrowRight.png";
|
||||
|
||||
import arrowBtn from "../../images/arrowRight.svg";
|
||||
|
||||
import "./FrequentlyAskedQuestion.scss";
|
||||
import { useEffect, useState } from "react";
|
||||
import {
|
||||
FREQUENTLY_ASKED_QUESTIONS_ROUTE,
|
||||
FREQUENTLY_ASKED_QUESTION_ROUTE,
|
||||
} from "../../constants/router-path";
|
||||
|
||||
export const FrequentlyAskedQuestion = () => {
|
||||
const params = useParams();
|
||||
const navigate = useNavigate()
|
||||
const navigate = useNavigate();
|
||||
const [question, setQuestion] = useState({
|
||||
id: params.id,
|
||||
title: "Это фриланс-платформа?",
|
||||
@ -35,16 +34,19 @@ export const FrequentlyAskedQuestion = () => {
|
||||
{ name: "Главная", link: "/auth" },
|
||||
{
|
||||
name: "FAQ (часто задаваемые вопросы)",
|
||||
link: FREQUENTLY_ASKED_QUESTIONS_ROUTE,
|
||||
link: "/frequently-asked-questions",
|
||||
},
|
||||
{
|
||||
name: question.title,
|
||||
link: FREQUENTLY_ASKED_QUESTION_ROUTE + "/" + params.id,
|
||||
link: `/frequently-asked-question/${params.id}`,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<div className="frequently-asked-question__title">{question.title}</div>
|
||||
<div className="frequently-asked-question__back" onClick={()=>navigate(-1)}>
|
||||
<div
|
||||
className="frequently-asked-question__back"
|
||||
onClick={() => navigate(-1)}
|
||||
>
|
||||
<div className="frequently-asked-question__arrow">
|
||||
<img src={arrowBtn}></img>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user