mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 13:36:43 +00:00
education credential table in dashboard
This commit is contained in:
parent
6534654908
commit
23f16e17c3
1 changed files with 9 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ import DevFull, {dummyDevFull as dev} from '../models/DevFull';
|
||||||
|
|
||||||
import Experience from '../models/Experience';
|
import Experience from '../models/Experience';
|
||||||
import {getTimePeriod} from '../types/TimePeriod';
|
import {getTimePeriod} from '../types/TimePeriod';
|
||||||
|
import Education from '../models/Education';
|
||||||
|
|
||||||
const Dashboard: FC<DevFull> = () => {
|
const Dashboard: FC<DevFull> = () => {
|
||||||
return (
|
return (
|
||||||
|
|
@ -57,17 +58,19 @@ const Dashboard: FC<DevFull> = () => {
|
||||||
<th className="hide-sm">Years</th>
|
<th className="hide-sm">Years</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{dev.educations.map((edu: Education, i: number) => (
|
||||||
<tr>
|
<tr>
|
||||||
<td>University of Washington</td>
|
<td>{edu.school}</td>
|
||||||
<td className="hide-sm">Computer Science</td>
|
<td className="hide-sm">{edu.field}</td>
|
||||||
<td className="hide-sm">Sep 1993 - June 1999</td>
|
<td className="hide-sm">{getTimePeriod(edu.from, edu.to)}</td>
|
||||||
<td>
|
<td>
|
||||||
<button className="btn btn-danger">Delete</button>
|
<button className="btn btn-danger">Delete</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
))}
|
||||||
</thead>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div className="my-2">
|
<div className="my-2">
|
||||||
<button className="btn btn-danger">
|
<button className="btn btn-danger">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue