From 72c48e98c3a1f2bc1e793dcbdd38d81dca881ff1 Mon Sep 17 00:00:00 2001 From: Victor Batischev Date: Sun, 10 Mar 2024 19:45:20 +0300 Subject: [PATCH] rename request search --- src/components/Navigation/Navigation.jsx | 2 +- src/components/ProfileHeader/ProfileHeader.jsx | 2 +- src/pages/Home/Home.jsx | 2 +- src/pages/PartnerAddRequest/PartnerAddRequest.jsx | 2 +- src/pages/PartnerBid/PartnerBid.jsx | 8 ++++---- src/pages/PartnerEmployees/PartnerEmployees.jsx | 12 ++++++------ src/pages/PartnerRequests/PartnerRequests.jsx | 10 +++++----- src/pages/PartnerСategories/PartnerСategories.jsx | 12 ++++++++---- src/pages/PartnerСategories/partnerСategories.scss | 1 + src/pages/Profile/Profile.jsx | 4 ++-- 10 files changed, 30 insertions(+), 25 deletions(-) diff --git a/src/components/Navigation/Navigation.jsx b/src/components/Navigation/Navigation.jsx index 64238709..eb4baac8 100644 --- a/src/components/Navigation/Navigation.jsx +++ b/src/components/Navigation/Navigation.jsx @@ -50,7 +50,7 @@ export const Navigation = () => { }, { path: "/requests", - name: "Запросы" + name: "Мои вакансии" }, { path: "/employees", diff --git a/src/components/ProfileHeader/ProfileHeader.jsx b/src/components/ProfileHeader/ProfileHeader.jsx index 92afe6e5..16d5caef 100644 --- a/src/components/ProfileHeader/ProfileHeader.jsx +++ b/src/components/ProfileHeader/ProfileHeader.jsx @@ -59,7 +59,7 @@ export const ProfileHeader = () => { }, { path: "/requests", - name: "Запросы" + name: "Мои вакансии" }, { path: "/employees", diff --git a/src/pages/Home/Home.jsx b/src/pages/Home/Home.jsx index 851c68a1..f95b0ac7 100644 --- a/src/pages/Home/Home.jsx +++ b/src/pages/Home/Home.jsx @@ -62,7 +62,7 @@ export const Home = () => { diff --git a/src/pages/PartnerAddRequest/PartnerAddRequest.jsx b/src/pages/PartnerAddRequest/PartnerAddRequest.jsx index c0aad27d..869a79ab 100644 --- a/src/pages/PartnerAddRequest/PartnerAddRequest.jsx +++ b/src/pages/PartnerAddRequest/PartnerAddRequest.jsx @@ -175,7 +175,7 @@ export const PartnerAddRequest = () => { { { -
+ {/*

Подходящие сотрудники по запросу

@@ -259,7 +259,7 @@ export const PartnerBid = () => { ); })}
-
+ */} )} diff --git a/src/pages/PartnerEmployees/PartnerEmployees.jsx b/src/pages/PartnerEmployees/PartnerEmployees.jsx index 12ee652e..a3d46e9f 100644 --- a/src/pages/PartnerEmployees/PartnerEmployees.jsx +++ b/src/pages/PartnerEmployees/PartnerEmployees.jsx @@ -16,12 +16,12 @@ import "./partnerEmployees.scss"; export const PartnerEmployees = () => { const partnerEmployees = useSelector(getPartnerEmployees); - if ( - localStorage.getItem("role_status") !== "18" || - !partnerEmployees.length - ) { - return ; - } + // if ( + // localStorage.getItem("role_status") !== "18" || + // !partnerEmployees.length + // ) { + // return ; + // } return (
diff --git a/src/pages/PartnerRequests/PartnerRequests.jsx b/src/pages/PartnerRequests/PartnerRequests.jsx index b863c5a1..e4d82731 100644 --- a/src/pages/PartnerRequests/PartnerRequests.jsx +++ b/src/pages/PartnerRequests/PartnerRequests.jsx @@ -47,10 +47,10 @@ export const PartnerRequests = () => { -

Запросы

+

Мои вакансии

{loader && } {Boolean(requests.length) && !loader && (
@@ -86,7 +86,7 @@ export const PartnerRequests = () => { + - Создать запрос + Разместить вакансию
@@ -97,11 +97,11 @@ export const PartnerRequests = () => {
cursor -

У вас ещё нет запросов на сотрудников

+

У вас ещё нет размещенных вакансий

+ - Создать запрос + Разместить вакансию
diff --git a/src/pages/PartnerСategories/PartnerСategories.jsx b/src/pages/PartnerСategories/PartnerСategories.jsx index 044c4a5a..6229b481 100644 --- a/src/pages/PartnerСategories/PartnerСategories.jsx +++ b/src/pages/PartnerСategories/PartnerСategories.jsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from "react"; // import { useDispatch } from "react-redux"; // import { Link } from "react-router-dom"; -import { Navigate } from "react-router-dom"; +import { Link, Navigate } from "react-router-dom"; import { apiRequest } from "@api/request"; @@ -173,9 +173,13 @@ export const PartnerCategories = () => { ); }) ) : ( - - У вас нет нанятого персонала - +
+ У вас нет нанятого персонала, разместите вашу
первую + вакансию на вкладке{" "} + + Мои вакансии + +
)} {/*{personalInfoItems.map((item, index) => {*/} {/* return (*/} diff --git a/src/pages/PartnerСategories/partnerСategories.scss b/src/pages/PartnerСategories/partnerСategories.scss index 49039611..9ec5dbcd 100644 --- a/src/pages/PartnerСategories/partnerСategories.scss +++ b/src/pages/PartnerСategories/partnerСategories.scss @@ -21,6 +21,7 @@ font-size: 18px; font-weight: 500; margin-top: 20px; + text-align: center; } .item { diff --git a/src/pages/Profile/Profile.jsx b/src/pages/Profile/Profile.jsx index b1338954..2fbe356d 100644 --- a/src/pages/Profile/Profile.jsx +++ b/src/pages/Profile/Profile.jsx @@ -62,12 +62,12 @@ export const Profile = () => { { path: "profile/requests", img: reportsIcon, - title: "Запросы и открытые позиции", + title: "Мои вакансии", description: "У вас 2 вакансии
открытые от лица компании" }, { - path: "profile/categories", + path: "profile/employees", img: summaryIcon, title: "Данные персонала", description: "Наши специалисты
уже работающие у вас"