|
|
|
@@ -15,14 +15,13 @@ import { useTheme } from "@mui/system"; |
|
|
|
import { useMediaQuery } from "@mui/material"; |
|
|
|
|
|
|
|
const UsersPage = () => { |
|
|
|
|
|
|
|
const theme = useTheme(); |
|
|
|
const matches = useMediaQuery(theme.breakpoints.down("sm")); |
|
|
|
const dispatch = useDispatch(); |
|
|
|
const { users } = useSelector((s) => s.users); |
|
|
|
useEffect(() => { |
|
|
|
dispatch(setUsersReq()); |
|
|
|
},[dispatch]); |
|
|
|
}, [dispatch]); |
|
|
|
|
|
|
|
return ( |
|
|
|
<div> |
|
|
|
@@ -36,26 +35,32 @@ const UsersPage = () => { |
|
|
|
<h1 className="page-heading">Upravljanje korisnicima</h1> |
|
|
|
<div className="flex-center"> |
|
|
|
{/* <button></button> */} |
|
|
|
{!matches && <IconButton className={"c-btn--primary-outlined c-btn userPageBtn"}> |
|
|
|
Režim uređivanja |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
top: -0.25, |
|
|
|
paddingLeft: "10px", |
|
|
|
}} |
|
|
|
src={userPageBtnIcon} |
|
|
|
/> |
|
|
|
</IconButton>} |
|
|
|
{!matches && ( |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn userPageBtn"} |
|
|
|
> |
|
|
|
Režim uređivanja |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
top: -0.25, |
|
|
|
paddingLeft: "10px", |
|
|
|
}} |
|
|
|
src={userPageBtnIcon} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
)} |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn userPageBtn ml-20px no-padding"} |
|
|
|
className={ |
|
|
|
"c-btn--primary-outlined c-btn userPageBtn ml-20px no-padding" |
|
|
|
} |
|
|
|
> |
|
|
|
{!matches && 'Filteri'} |
|
|
|
{!matches && "Filteri"} |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
top: -0.25, |
|
|
|
paddingLeft: (matches ? '0px' : "10px"), |
|
|
|
paddingLeft: matches ? "0px" : "10px", |
|
|
|
}} |
|
|
|
src={filters} |
|
|
|
/> |
|
|
|
@@ -72,61 +77,63 @@ const UsersPage = () => { |
|
|
|
minHeight: "500px", |
|
|
|
}} |
|
|
|
> |
|
|
|
<table className="usersTable" style={{ width: "1117px" }}> |
|
|
|
<thead> |
|
|
|
<tr className="headingRow"> |
|
|
|
<th>Ime i prezime</th> |
|
|
|
<th>E-mail</th> |
|
|
|
<th>Pozicija</th> |
|
|
|
<th>CV Link</th> |
|
|
|
<th></th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
{users.map((n) => ( |
|
|
|
<tr key={n.id} className="secondaryRow"> |
|
|
|
<td> |
|
|
|
{n.firstName} {n.lastName} |
|
|
|
</td> |
|
|
|
<td>{n.email}</td> |
|
|
|
<td>HR Specialist</td> |
|
|
|
<td className="cvLink">CV_Ermin.pdf</td> |
|
|
|
<td> |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn td-btn"} |
|
|
|
> |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
}} |
|
|
|
src={lock} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn td-btn"} |
|
|
|
> |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
}} |
|
|
|
src={forbiden} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn td-btn"} |
|
|
|
> |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
}} |
|
|
|
src={edit} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
</td> |
|
|
|
<div className=" table-cont"> |
|
|
|
<table className="usersTable" style={{ width: "1117px" }}> |
|
|
|
<thead> |
|
|
|
<tr className="headingRow"> |
|
|
|
<th>Ime i prezime</th> |
|
|
|
<th>E-mail</th> |
|
|
|
<th>Pozicija</th> |
|
|
|
<th>CV Link</th> |
|
|
|
<th></th> |
|
|
|
</tr> |
|
|
|
))} |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
{users.map((n) => ( |
|
|
|
<tr key={n.id} className="secondaryRow"> |
|
|
|
<td> |
|
|
|
{n.firstName} {n.lastName} |
|
|
|
</td> |
|
|
|
<td>{n.email}</td> |
|
|
|
<td>HR Specialist</td> |
|
|
|
<td className="cvLink">CV_Ermin.pdf</td> |
|
|
|
<td> |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn td-btn"} |
|
|
|
> |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
}} |
|
|
|
src={lock} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn td-btn"} |
|
|
|
> |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
}} |
|
|
|
src={forbiden} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
<IconButton |
|
|
|
className={"c-btn--primary-outlined c-btn td-btn"} |
|
|
|
> |
|
|
|
<img |
|
|
|
style={{ |
|
|
|
position: "relative", |
|
|
|
}} |
|
|
|
src={edit} |
|
|
|
/> |
|
|
|
</IconButton> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
))} |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
<div style={{ display: "flex", justifyContent: "flex-end" }}> |
|
|
|
<IconButton className={"c-btn--primary c-btn inviteBtn"}> |
|
|
|
<img |