rename request search

This commit is contained in:
Victor Batischev 2024-03-10 19:45:20 +03:00
parent 14d3b6fa45
commit 72c48e98c3
10 changed files with 30 additions and 25 deletions

View File

@ -50,7 +50,7 @@ export const Navigation = () => {
}, },
{ {
path: "/requests", path: "/requests",
name: "Запросы" name: "Мои вакансии"
}, },
{ {
path: "/employees", path: "/employees",

View File

@ -59,7 +59,7 @@ export const ProfileHeader = () => {
}, },
{ {
path: "/requests", path: "/requests",
name: "Запросы" name: "Мои вакансии"
}, },
{ {
path: "/employees", path: "/employees",

View File

@ -62,7 +62,7 @@ export const Home = () => {
<ProfileBreadcrumbs <ProfileBreadcrumbs
links={[ links={[
{ name: "Главная", link: "/profile" }, { name: "Главная", link: "/profile" },
{ name: "Запросы и открытые позиции", link: "/profile/requests" }, { name: "Мои вакансии", link: "/profile/requests" },
{ name: "Каталог", link: "/profile/catalog" } { name: "Каталог", link: "/profile/catalog" }
]} ]}
/> />

View File

@ -175,7 +175,7 @@ export const PartnerAddRequest = () => {
<ProfileBreadcrumbs <ProfileBreadcrumbs
links={[ links={[
{ name: "Главная", link: "/profile" }, { name: "Главная", link: "/profile" },
{ name: "Запросы и открытые позиции", link: "/profile/requests" }, { name: "Мои вакансии", link: "/profile/requests" },
{ {
name: `${ name: `${
editRequest ? "Редактирование заявки" : "Создание новой заявки" editRequest ? "Редактирование заявки" : "Создание новой заявки"

View File

@ -106,9 +106,9 @@ export const PartnerBid = () => {
<ProfileBreadcrumbs <ProfileBreadcrumbs
links={[ links={[
{ name: "Главная", link: "/profile" }, { name: "Главная", link: "/profile" },
{ name: "Запросы и открытые позиции", link: "/profile/requests" }, { name: "Мои вакансии", link: "/profile/requests" },
{ {
name: "Просмотр заявки - PHP разработчик", name: "Просмотр вакансии",
link: "/profile/requests-bid" link: "/profile/requests-bid"
} }
]} ]}
@ -232,7 +232,7 @@ export const PartnerBid = () => {
</tbody> </tbody>
</table> </table>
</div> </div>
<div className="partner-bid__suitable"> {/* <div className="partner-bid__suitable">
<div className="partner-bid__suitable__title"> <div className="partner-bid__suitable__title">
<p>Подходящие сотрудники по запросу</p> <p>Подходящие сотрудники по запросу</p>
</div> </div>
@ -259,7 +259,7 @@ export const PartnerBid = () => {
); );
})} })}
</div> </div>
</div> </div> */}
</> </>
)} )}
</div> </div>

View File

@ -16,12 +16,12 @@ import "./partnerEmployees.scss";
export const PartnerEmployees = () => { export const PartnerEmployees = () => {
const partnerEmployees = useSelector(getPartnerEmployees); const partnerEmployees = useSelector(getPartnerEmployees);
if ( // if (
localStorage.getItem("role_status") !== "18" || // localStorage.getItem("role_status") !== "18" ||
!partnerEmployees.length // !partnerEmployees.length
) { // ) {
return <Navigate to="/profile/categories" replace />; // return <Navigate to="/profile/categories" replace />;
} // }
return ( return (
<div className="partner-employees"> <div className="partner-employees">
<ProfileHeader /> <ProfileHeader />

View File

@ -47,10 +47,10 @@ export const PartnerRequests = () => {
<ProfileBreadcrumbs <ProfileBreadcrumbs
links={[ links={[
{ name: "Главная", link: "/profile" }, { name: "Главная", link: "/profile" },
{ name: "Запросы и открытые позиции", link: "/profile/requests" } { name: "Мои вакансии", link: "/profile/requests" }
]} ]}
/> />
<h2 className="partner-requests__title">Запросы</h2> <h2 className="partner-requests__title">Мои вакансии</h2>
{loader && <Loader />} {loader && <Loader />}
{Boolean(requests.length) && !loader && ( {Boolean(requests.length) && !loader && (
<div className="partner-requests__section"> <div className="partner-requests__section">
@ -86,7 +86,7 @@ export const PartnerRequests = () => {
<BaseButton> <BaseButton>
<Link to={"/profile/requests-add"}> <Link to={"/profile/requests-add"}>
<span>+</span> <span>+</span>
Создать запрос Разместить вакансию
</Link> </Link>
</BaseButton> </BaseButton>
</div> </div>
@ -97,11 +97,11 @@ export const PartnerRequests = () => {
<div className="partner-requests__no-items__create"> <div className="partner-requests__no-items__create">
<div className="partner-requests__no-items__create__link"> <div className="partner-requests__no-items__create__link">
<img src={cursorImg} alt="cursor" /> <img src={cursorImg} alt="cursor" />
<p>У вас ещё нет запросов на сотрудников</p> <p>У вас ещё нет размещенных вакансий</p>
<BaseButton> <BaseButton>
<Link to={"/profile/requests-add"}> <Link to={"/profile/requests-add"}>
<span>+</span> <span>+</span>
Создать запрос Разместить вакансию
</Link> </Link>
</BaseButton> </BaseButton>
</div> </div>

View File

@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
// import { useDispatch } from "react-redux"; // import { useDispatch } from "react-redux";
// import { Link } from "react-router-dom"; // import { Link } from "react-router-dom";
import { Navigate } from "react-router-dom"; import { Link, Navigate } from "react-router-dom";
import { apiRequest } from "@api/request"; import { apiRequest } from "@api/request";
@ -173,9 +173,13 @@ export const PartnerCategories = () => {
); );
}) })
) : ( ) : (
<span className="partner-categories__empty"> <div className="partner-categories__empty">
У вас нет нанятого персонала У вас нет нанятого персонала, разместите вашу <br /> первую
</span> вакансию на вкладке{" "}
<Link to={`/profile/requests`}>
<b>Мои вакансии</b>
</Link>
</div>
)} )}
{/*{personalInfoItems.map((item, index) => {*/} {/*{personalInfoItems.map((item, index) => {*/}
{/* return (*/} {/* return (*/}

View File

@ -21,6 +21,7 @@
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
margin-top: 20px; margin-top: 20px;
text-align: center;
} }
.item { .item {

View File

@ -62,12 +62,12 @@ export const Profile = () => {
{ {
path: "profile/requests", path: "profile/requests",
img: reportsIcon, img: reportsIcon,
title: "Запросы и открытые позиции", title: "Мои вакансии",
description: description:
"<span>У вас 2 вакансии<br/></span>открытые от лица компании" "<span>У вас 2 вакансии<br/></span>открытые от лица компании"
}, },
{ {
path: "profile/categories", path: "profile/employees",
img: summaryIcon, img: summaryIcon,
title: "Данные персонала", title: "Данные персонала",
description: "Наши специалисты <br/><span>уже работающие у вас</span>" description: "Наши специалисты <br/><span>уже работающие у вас</span>"