partner reg, fix employers bug, edit report
This commit is contained in:
@ -39,7 +39,7 @@ export const PartnerCategories = () => {
|
||||
setLoader(true);
|
||||
apiRequest("/project/my-employee").then((el) => {
|
||||
setLoader(false);
|
||||
setStaff(el.managerEmployees);
|
||||
setStaff(el?.managerEmployees);
|
||||
});
|
||||
}, []);
|
||||
|
||||
@ -161,7 +161,7 @@ export const PartnerCategories = () => {
|
||||
<Loader style={"green"} height={80} width={80} />
|
||||
) : (
|
||||
<div className="partnerCategories__items">
|
||||
{staff.map((card) => {
|
||||
{Boolean(staff) ? staff.map((card) => {
|
||||
return (
|
||||
<PartnerPersonCard
|
||||
key={card.id}
|
||||
@ -170,7 +170,7 @@ export const PartnerCategories = () => {
|
||||
userId={card.user_id}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
}) : <span className="partnerCategories__empty">У вас нет нанятого персонала</span>}
|
||||
{/*{personalInfoItems.map((item, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <Link*/}
|
||||
|
@ -21,6 +21,12 @@
|
||||
//column-gap: 21px;
|
||||
}
|
||||
|
||||
&__empty {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
|
Reference in New Issue
Block a user