Skip to content

Commit f04388a

Browse files
Merge branch 'development' into Mohan-fix-duplicate-time-logging
2 parents 9e8e46e + e293636 commit f04388a

117 files changed

Lines changed: 11209 additions & 4855 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 66 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"html-to-pdfmake": "^2.0.6",
6161
"html2canvas": "^1.4.1",
6262
"jquery": "^3.7.1",
63-
"jspdf": "^3.0.1",
63+
"jspdf": "^3.0.3",
6464
"jwt-decode": "^2.2.0",
6565
"leaflet": "^1.9.4",
6666
"leaflet.heat": "^0.2.0",
@@ -98,6 +98,7 @@
9898
"react-spinners": "^0.15.0",
9999
"react-sticky": "^6.0.3",
100100
"react-table": "^7.8.0",
101+
"react-tagcloud": "^2.3.3",
101102
"react-to-pdf": "^1.0.1",
102103
"react-to-print": "^3.0.5",
103104
"react-toastify": "^5.3.1",
@@ -187,7 +188,6 @@
187188
"sass": "^1.86.3",
188189
"sass-loader": "^16.0.5",
189190
"stylelint": "^16.25.0",
190-
"stylelint-config-prettier": "^9.0.5",
191191
"stylelint-config-standard": "^39.0.1",
192192
"typescript": "^4.8.4",
193193
"vite": "^6.3.5",

src/actions/information.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const getInfoCollections = () => {
2525
try {
2626
const response = await axios.get(ENDPOINTS.INFO_COLLECTIONS);
2727
dispatch(fetchInfosSuccess(response.data));
28-
return response.status;
28+
return response.data;
2929
} catch (error) {
3030
toast.error(error.message || 'Failed to fetch info collections.');
3131
return null;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import axios from 'axios';
2+
import { ENDPOINTS } from '../../utils/URL';
3+
import {
4+
JOB_APPLICATION_GET_FORMS_REQUEST,
5+
JOB_APPLICATION_GET_FORMS_SUCCESS,
6+
JOB_APPLICATION_GET_FORMS_FAIL,
7+
JOB_APPLICATION_SET_SELECTED_JOB,
8+
} from '../../constants/jobApplication/jobApplicationConstants';
9+
10+
export const getAllForms = () => async dispatch => {
11+
dispatch({ type: JOB_APPLICATION_GET_FORMS_REQUEST });
12+
try {
13+
const { data } = await axios.get(ENDPOINTS.GET_ALL_JOB_FORMS);
14+
dispatch({ type: JOB_APPLICATION_GET_FORMS_SUCCESS, payload: data.data });
15+
} catch (error) {
16+
dispatch({
17+
type: JOB_APPLICATION_GET_FORMS_FAIL,
18+
payload: error.response?.data?.message || error.message,
19+
});
20+
}
21+
};
22+
23+
export const setSelectedJob = jobTitle => ({
24+
type: JOB_APPLICATION_SET_SELECTED_JOB,
25+
payload: jobTitle,
26+
});

0 commit comments

Comments
 (0)