diff --git a/src/components/sidebar/sidebarItems.tsx b/src/components/sidebar/sidebarItems.tsx index 5802b939e..b6e6b3711 100644 --- a/src/components/sidebar/sidebarItems.tsx +++ b/src/components/sidebar/sidebarItems.tsx @@ -34,6 +34,11 @@ export const sidebarItems1 = [ icon: , title: "Applications", }, + { + path: "Trainee-applicants", + icon: , + title: "Trainees-Applicants", + }, { path: "cohort", icon: , @@ -44,7 +49,6 @@ export const sidebarItems1 = [ icon: , title: "Application Cycles", }, - { path: "grading", icon: , diff --git a/src/pages/Applications.tsx b/src/pages/Applications.tsx index ec6b06add..521bc2b5f 100644 --- a/src/pages/Applications.tsx +++ b/src/pages/Applications.tsx @@ -15,7 +15,7 @@ import { connect, useSelector } from "react-redux"; import { HiDotsVertical } from "react-icons/hi"; import Box from "@mui/material/Box"; import { useCustomPagination } from "components/Pagination/useCustomPagination"; - +import { useTheme } from "../hooks/darkmode"; type Props = {}; interface Update { @@ -35,7 +35,30 @@ const Applications = (props: any) => { pageSize: 5, page: 1, }); + const { theme, setTheme } = useTheme(); + const customTheme = (theme: any) => { + return { + ...theme, + colors: { + ...theme.colors, + text: "light-gray", + primary25: "#E5E7EB", + primary: "#d6dfdf", + neutral0: "white", + }, + }; + }; + const darkTheme = (theme: any) => { + return { + ...theme, + colors: { + primary25: "#404657", + primary: "#d6dfdf", + neutral0: "#293647", + }, + }; + }; const [deleteWarn, setDeleteWarn] = useState({ id: "", open: false, @@ -89,15 +112,42 @@ const Applications = (props: any) => {
- - - +
+
+ +
+ + + +
+
+
+
+
{/* Filter Bar */}
diff --git a/src/pages/Applications/AdminViewApplications.tsx b/src/pages/Applications/AdminViewApplications.tsx index 3d2921e9c..03feda845 100644 --- a/src/pages/Applications/AdminViewApplications.tsx +++ b/src/pages/Applications/AdminViewApplications.tsx @@ -4,10 +4,13 @@ import NavBar from '../../components/sidebar/navHeader'; import { fetchApplications } from '../../redux/actions/adminListApplications'; import { HiDotsVertical } from 'react-icons/hi'; import { Pagination } from 'flowbite-react'; - +import Select from "react-select"; +import { useTheme } from "../../hooks/darkmode"; +import * as icons from "react-icons/ai"; const ListApplications = () => { const navigate = useNavigate(); const [applications, setApplications]: any = useState(); + const { theme, setTheme } = useTheme(); const [activePage, setActivePage] = useState(1); const [itemsCountPerPage, setItemsCountPerPage] = useState(10); @@ -47,7 +50,29 @@ const ListApplications = () => { ) => { setItemsCountPerPage(Number(event.target.value)); }; + const customTheme = (theme: any) => { + return { + ...theme, + colors: { + ...theme.colors, + text: "light-gray", + primary25: "#E5E7EB", + primary: "#d6dfdf", + neutral0: "white", + }, + }; + }; + const darkTheme = (theme: any) => { + return { + ...theme, + colors: { + primary25: "#404657", + primary: "#d6dfdf", + neutral0: "#293647", + }, + }; + }; const totalApplications = applications?.length; return ( @@ -57,14 +82,42 @@ const ListApplications = () => {
-
-
- - - -
+
+
+ +
+ + + +
+
+
diff --git a/src/pages/JobPost/job.tsx b/src/pages/JobPost/job.tsx index 2ba639300..e98a9501e 100644 --- a/src/pages/JobPost/job.tsx +++ b/src/pages/JobPost/job.tsx @@ -409,7 +409,7 @@ const Jobs = (props: any) => { - {fetchJobPostStates?.data?.map((item: any) => ( + {allfilteredjobPosts?.data?.map((item: any) => ( async (dispatch: any) => { try { - if(filterAttribute==='' || filterAttribute===null){ - toast.error("Please insert a filter attribute") - } const datas = await axios.post("/", { query: ` query Query($input: FilterOptions) {