|
|
|
@@ -6,6 +6,10 @@ import { setDoneProcessReq } from "../../store/actions/processes/processAction"; |
|
|
|
import { useDispatch, useSelector } from "react-redux"; |
|
|
|
import { formatDateSrb, formatTimeSrb } from "../../util/helpers/dateHelpers"; |
|
|
|
import { SELECTION_PROCESS_OF_APPLICANT_PAGE } from "../../constants/pages"; |
|
|
|
import { PUT_PROCESS_LOADING } from "../../store/actions/processes/processesActionConstants"; |
|
|
|
import { selectIsLoadingByActionType } from "../../store/selectors/loadingSelectors"; |
|
|
|
import Backdrop from "../../components/MUI/BackdropComponent"; |
|
|
|
|
|
|
|
|
|
|
|
const dragStart = (e, applicant) => { |
|
|
|
e.dataTransfer.setData("text/plain", JSON.stringify(applicant)); |
|
|
|
@@ -38,6 +42,10 @@ const Selection = (props) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const isLoading = useSelector( |
|
|
|
selectIsLoadingByActionType(PUT_PROCESS_LOADING) |
|
|
|
); |
|
|
|
|
|
|
|
const handleOpenDetails = (id) => { |
|
|
|
props.history.push(SELECTION_PROCESS_OF_APPLICANT_PAGE.replace(":id", id)) |
|
|
|
} |
|
|
|
@@ -68,6 +76,7 @@ const Selection = (props) => { |
|
|
|
<div className="selection-card-title"> |
|
|
|
<h3>{props.selection.name}</h3> |
|
|
|
</div> |
|
|
|
<Backdrop position="absolute" isLoading={isLoading} /> |
|
|
|
|
|
|
|
{applicants.length > 0 && renderList} |
|
|
|
{applicants.length === 0 && <div className="sel-item"> |