From ecefefb7578f6192c4d003f45d365033b078ab93 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Thu, 25 May 2023 15:33:18 +0200 Subject: [PATCH] Refactor JobHistory --- src/app/components/JobsHistory.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/app/components/JobsHistory.tsx b/src/app/components/JobsHistory.tsx index 6f5bf02..1192a95 100644 --- a/src/app/components/JobsHistory.tsx +++ b/src/app/components/JobsHistory.tsx @@ -5,7 +5,6 @@ import Col from 'react-bootstrap/Col'; import Row from 'react-bootstrap/Row'; import JobCard from './JobCard'; import { usePersonContext } from './PersonContext'; -import { Job } from '../../PersonalDataTypes'; import { partition } from '../utils'; const entriesPerRow = 2 @@ -13,20 +12,13 @@ const entriesPerRow = 2 export default function JobsHistory() { const person = usePersonContext() - function JobEntry(job: Job, heading?: string) { - return - } - return (

Experience

{person.jobs.current && ( - {JobEntry(person.jobs.current, 'Current position')} + )} @@ -34,11 +26,11 @@ export default function JobsHistory() { {(jobs.map((job, subindex) => ( - {JobEntry(job)} + )))} - ))} + ))}
) }