Add courses table file.
This commit is contained in:
parent
3d6a94d570
commit
c5b44763c9
39
src/Pages/Software/coursesTable.js
Normal file
39
src/Pages/Software/coursesTable.js
Normal file
@ -0,0 +1,39 @@
|
||||
import React from 'react';
|
||||
|
||||
import educationData from './education.json';
|
||||
import { useTheme } from '../../ThemeContext';
|
||||
import { getLanguage } from '../../Language/Language';
|
||||
import { getString } from '../../Language/LanguageStrings';
|
||||
|
||||
const CoursesTable = () => {
|
||||
const { theme } = useTheme();
|
||||
|
||||
return (
|
||||
<table className={'table table-striped table-hover table-' + theme}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{getString('completed')}</th>
|
||||
<th>{getString('duration')}</th>
|
||||
<th>{getString('course')}</th>
|
||||
<th>{getString('skills')}</th>
|
||||
<th>{getString('instructor')}</th>
|
||||
<th>{getString('institution')}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{educationData.courses.map((course, index) => (
|
||||
<tr key={index}>
|
||||
<td>{course.achieveDate}</td>
|
||||
<td>{course.duration + ' ' + getString('hour')}</td>
|
||||
<td>{course.name} {course.sub}</td>
|
||||
<td>{course.skills}</td>
|
||||
<td>{course.instructor}</td>
|
||||
<td>{course.institution}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
)
|
||||
}
|
||||
|
||||
export default CoursesTable;
|
||||
Loading…
x
Reference in New Issue
Block a user