Skip to content

Commit ed854d3

Browse files
committed
add sidebar link for trainee applicants
1 parent 0f0f50f commit ed854d3

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

src/components/sidebar/sidebar.tsx

100755100644
File mode changed.

src/components/sidebar/sidebarItems.tsx

100755100644
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export const sidebarItems1 = [
4444
icon: <Icon icon="game-icons:cycle"></Icon>,
4545
title: "Application Cycles",
4646
},
47-
47+
{
48+
path: 'Trainee-applicants',
49+
icon: <Icon icon="ic:round-people"></Icon>,
50+
title: 'Trainees/Applicants',
51+
},
52+
4853
{
4954
path: "grading",
5055
icon: <Icon icon="bxs:dashboard"></Icon>,

src/pages/TraineApplicant/Trainee.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const AddTrainee = (props: any) => {
228228
<div className="w-full">
229229
<div>
230230
<div className="bg-light-bg dark:bg-dark-frame-bg min-h-screen overflow-y-hidden overflow-x-hidden">
231-
<div className="flex items-left px-8 gap-2">
231+
<div className="flex items-left px-8 py-8 gap-2">
232232
<div className="flex py-2 pb-8 w-fit">
233233
<button
234234
onClick={Open}
@@ -346,7 +346,7 @@ const AddTrainee = (props: any) => {
346346
>
347347
<li>
348348
<Link
349-
to={`/trainee-applicant/${item._id}/edit`}
349+
to={`/admin/trainee-applicant/${item._id}/edit`}
350350
className="text-sm hover:bg-gray-100 text-gray-700 dark:hover:bg-gray-500 dark:text-white block px-4 py-2"
351351
>
352352
Edit

src/pages/updateTrainee/traineUpdate.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ const TraineeUpdate = (props: any) => {
211211
return (
212212
<>
213213

214-
<div className="block bg-white dark:bg-dark-tertiary relative mt-10 w-[100%] py-3 min-h-[100vh]">
215-
<div className="block text-center font-bold text-gray-600 relative lg:left-[8rem] dark:text-white text-base lg:max-w-3xl sm:w-[100%] p-4 lg:px-4 m-4 mx-auto text-[24px]">
214+
<div className="block bg-white dark:bg-dark-tertiary relative w-[100%] py-3 min-h-[100vh]">
215+
<div className="block text-center font-bold text-gray-600 lg:left-[8rem] dark:text-white text-base lg:max-w-3xl sm:w-[100%] p-4 lg:px-4 m-4 mx-auto text-[24px]">
216216
<h1 className="p-2">Update Trainee-applicant</h1>
217217
</div>
218218
<form
219-
className="block bg-white dark:bg-dark-frame-bg lg:max-w-3xl sm:w-[100%] min-h-[100vh] relative lg:left-[8rem] dark:text-white lg:px-4 mb-4 text-gray-600 shadow rounded mx-auto"
219+
className="block bg-white dark:bg-dark-frame-bg lg:max-w-3xl sm:w-[100%] min-h-[100vh] lg:left-[8rem] dark:text-white lg:px-4 mb-4 text-gray-600 shadow rounded mx-auto"
220220
onSubmit={handleSubmit}
221221
>
222222
{Object.keys(traineeData).length === 0 ? (
@@ -809,7 +809,7 @@ const TraineeUpdate = (props: any) => {
809809
)}
810810
</button>
811811
<Link
812-
to="/Trainee-applicants"
812+
to="/admin/Trainee-applicants"
813813
className="dark:bg-[#56C870] flex bg-gray-600 rounded-md py-2 mx-2 px-4 text-white font-medium cursor-pointer"
814814
>
815815
Cancel

src/routes/routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function Navigation() {
116116
}
117117
/>
118118
<Route
119-
path="trainee-applicant/:traineeId/edit"
119+
path="/admin/trainee-applicant/:traineeId/edit"
120120
element={
121121
<PrivateRoute>
122122
<UpdateTraine />

0 commit comments

Comments
 (0)