diff --git a/src/components/Candidate/Candidate.js b/src/components/Candidate/Candidate.js index 8be534d8..a97e32d9 100644 --- a/src/components/Candidate/Candidate.js +++ b/src/components/Candidate/Candidate.js @@ -18,6 +18,7 @@ import design from '../../images/design.png'; const Candidate = () => { const history = useHistory(); + const { id: candidateId } = useParams(); const dispatch = useDispatch(); @@ -35,8 +36,6 @@ const Candidate = () => { const currentCandidateObj = useSelector(selectCurrentCandidate); - console.log('currentCandidateObj ', currentCandidateObj); - const { position_id, skillValues, vc_text: text } = currentCandidateObj; let classes; diff --git a/src/components/Form/Form.js b/src/components/Form/Form.js index 031baaaa..16656e2d 100644 --- a/src/components/Form/Form.js +++ b/src/components/Form/Form.js @@ -1,6 +1,10 @@ import React, { useState } from 'react'; import style from './Form.module.css'; import { fetchForm } from '../../server/server'; +import arrow from '../../images/right-arrow.png'; +import { useHistory } from 'react-router-dom'; +import { selectPath } from '../../redux/outstaffingSlice'; +import { useSelector } from 'react-redux'; const Form = () => { const [data, setData] = useState({ @@ -9,6 +13,9 @@ const Form = () => { comment: '', }); + const history = useHistory(); + const prevPath = useSelector(selectPath); + const handleChange = (e) => { const newData = { ...data }; newData[e.target.id] = e.target.value; @@ -30,6 +37,14 @@ const Form = () => {