diff --git a/components/FeaturedJobItem/FeaturedJobItem.js b/components/FeaturedJobItem/FeaturedJobItem.js index 0ca9ff3a7..86c6354d8 100644 --- a/components/FeaturedJobItem/FeaturedJobItem.js +++ b/components/FeaturedJobItem/FeaturedJobItem.js @@ -3,7 +3,6 @@ import OutboundLink from 'components/OutboundLink/OutboundLink'; import BuildingIcon from 'static/images/icons/FontAwesome/building_icon.svg'; import CloudUploadIcon from 'static/images/icons/FontAwesome/cloud_upload_icon.svg'; import MapMarkerIcon from 'static/images/icons/FontAwesome/map_marker_icon.svg'; -import styles from './FeaturedJobItem.module.css'; FeaturedJobItem.propTypes = { title: string.isRequired, @@ -25,32 +24,34 @@ FeaturedJobItem.defaultProps = { function FeaturedJobItem({ title, source, sourceUrl, city, state, country, description, remote }) { return ( -
+
{title}
-
-
- - {source} +
+
+ + {source}
-
- {(city || state || country) && } - {city && {city},} - {state && {state},} - {country && {country}} +
+ {(city || state || country) && ( + + )} + {city && {city},} + {state && {state},} + {country && {country}}
{remote && ( -
- - Remote +
+ + Remote
)}
-

{description}

+

{description}

); } diff --git a/components/FeaturedJobItem/FeaturedJobItem.module.css b/components/FeaturedJobItem/FeaturedJobItem.module.css deleted file mode 100644 index 19df51351..000000000 --- a/components/FeaturedJobItem/FeaturedJobItem.module.css +++ /dev/null @@ -1,37 +0,0 @@ -.job { - padding: 1rem 0; -} - -.details { - display: flex; - flex-wrap: wrap; - font-size: 1.125rem; - color: var(--secondary); - opacity: 0.8; - margin-top: 0.25rem; -} - -.detailsContainer { - display: flex; - align-items: center; - gap: 0.3125rem; -} - -.detail { - margin-left: 4px; -} - -.description { - margin: 0; -} - -.remote { - composes: detail; - font-style: italic; -} - -.icon { - fill: var(--secondary); - opacity: 0.8; - height: 0.825rem; -} diff --git a/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap b/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap index da2ce3101..7411bbc94 100644 --- a/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap +++ b/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap @@ -2,7 +2,7 @@ exports[`FeaturedJobItem should render with many props assigned 1`] = `
Formidable Labs
Seattle , WA , United States
Remote

As an Experienced React Engineer, you will do React things.

@@ -86,7 +86,7 @@ exports[`FeaturedJobItem should render with many props assigned 1`] = ` exports[`FeaturedJobItem should render with required props 1`] = `
GitLab

This is a fake role, since GitLab always has remote.