education credential table in dashboard

This commit is contained in:
Ruidy Nemausat 2020-05-12 19:07:55 +02:00
parent 6534654908
commit 23f16e17c3

View file

@ -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">