-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a0a3d4
commit 41112f8
Showing
10 changed files
with
305 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Applicationcycles = () => { | ||
const Applicationcycles = ({ applicationCycles }: { applicationCycles: Array<any> }) => { | ||
return ( | ||
<div> | ||
Applicationcycles | ||
<div className="w-full"> | ||
{applicationCycles.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">Name</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{applicationCycles.map((applicationCycle, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{applicationCycle.name} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No application cycles found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Applicationcycles | ||
export default Applicationcycles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,40 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Cohorts = () => { | ||
const Cohorts = ({ cohorts }: { cohorts: Array<any> }) => { | ||
return ( | ||
<div> | ||
Cohorts | ||
<div className="w-full"> | ||
{cohorts.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">Title</th> | ||
<th className="py-3 px-6 border">Program</th> | ||
<th className="py-3 px-6 border">Cycle</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{cohorts.map((cohort, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{cohort.title} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{cohort.program.title} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{cohort.cycle.name} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No cohorts found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Cohorts | ||
export default Cohorts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,36 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Jobs = () => { | ||
const Jobs = ({ jobs }: { jobs: Array<any> }) => { | ||
return ( | ||
<div> | ||
jobs | ||
<div className="w-full"> | ||
{jobs.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">Job Name</th> | ||
<th className="py-3 px-6 border">Job Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{jobs.map((job, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{job.title} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{job.description} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No jobs found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Jobs | ||
export default Jobs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
|
||
const Programs = () => { | ||
const Programs = ({ programs }: { programs: Array<any> }) => { | ||
return ( | ||
<div> | ||
Programs | ||
<div className="w-full"> | ||
{programs.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">Title</th> | ||
<th className="py-3 px-6 border">Description</th> | ||
<th className="py-3 px-6 border">Main Objective</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{programs.map((program, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{program.title} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{program.description} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{program.mainObjective} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No programs found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Programs | ||
export default Programs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,36 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Roles = () => { | ||
const Roles = ({ roles }: { roles: Array<any> }) => { | ||
return ( | ||
<div> | ||
roles | ||
<div className="w-full"> | ||
{roles.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">Role Name</th> | ||
<th className="py-3 px-6 border">Role Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{roles.map((role, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{role.roleName} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{role.description} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No roles found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Roles | ||
export default Roles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,44 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Trainees = () => { | ||
const Trainees = ({ trainees }: { trainees: Array<any> }) => { | ||
return ( | ||
<div> | ||
Trainees | ||
<div className="w-full"> | ||
{trainees.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">First Name</th> | ||
<th className="py-3 px-6 border">Last Name</th> | ||
<th className="py-3 px-6 border">Email</th> | ||
<th className="py-3 px-6 border">Cycle</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{trainees.map((trainee, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{trainee.firstName} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{trainee.lastName} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{trainee.email} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{trainee.cycle_id.name} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No trainees found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Trainees | ||
export default Trainees; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,40 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Users = () => { | ||
const Users = ({ users }: { users: Array<any> }) => { | ||
return ( | ||
<div> | ||
users | ||
<div className="w-full"> | ||
{users.length > 0 ? ( | ||
<table className="min-w-full bg-dark-900 border-separate border-spacing-0"> | ||
<thead> | ||
<tr className="bg-dark-800 text-white"> | ||
<th className="py-3 px-6 border">First Name</th> | ||
<th className="py-3 px-6 border">Last Name</th> | ||
<th className="py-3 px-6 border">Email</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{users.map((user, index) => ( | ||
<tr key={index} className="odd:bg-dark-700 even:bg-dark-800 text-white text-center"> | ||
<td className="py-4 px-6 border"> | ||
{user.firstname} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{user.lastname} | ||
</td> | ||
<td className="py-4 px-6 border"> | ||
{user.email} | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
) : ( | ||
<div className="text-center py-6 text-white"> | ||
<p>No users found.</p> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Users | ||
export default Users; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.