From 2741e64aaf990ac707522298ec15f3805cb5cf78 Mon Sep 17 00:00:00 2001 From: Rafael Bardini Date: Tue, 8 Aug 2023 00:32:37 +0200 Subject: [PATCH] feat(work): use organization name as heading --- components/volunteer.js | 4 ++-- components/work.js | 6 +++--- test/__snapshots__/index.test.js.snap | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/volunteer.js b/components/volunteer.js index e08bb2d..f77bde4 100644 --- a/components/volunteer.js +++ b/components/volunteer.js @@ -11,9 +11,9 @@ export default function Volunteer(volunteer = []) { ${volunteer.map(({ highlights = [], organization, position, startDate, endDate, summary, url }) => html`
-

${position}

+

${Link(url, organization)}

- ${Link(url, organization)} + ${position}
${Duration(startDate, endDate)}
diff --git a/components/work.js b/components/work.js index f3fcc9c..3197a70 100644 --- a/components/work.js +++ b/components/work.js @@ -11,11 +11,11 @@ export default function Work(work = []) { ${work.map(({ description, highlights = [], location, name, position, startDate, endDate, summary, url }) => html`
-

${position}

+

${Link(url, name)}

- ${Link(url, name)} - ${description && html`${description}`} + ${description && html`
${description}
`} + ${position}
${Duration(startDate, endDate)}
${location && html`
${location}
`} diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index eb990b0..4c89f60 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -70,11 +70,11 @@ exports[`renders a resume 1`] = `
-

CEO/President

+

Pied Piper

- Pied Piper - Awesome compression company +
Awesome compression company
+ CEO/President
Palo Alto, CA
@@ -98,9 +98,9 @@ exports[`renders a resume 1`] = `