Skip to content

Commit

Permalink
Update jobs card
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-aac committed Oct 20, 2023
1 parent 893324a commit 541ee4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion workspaces/website/src/pages/jobs/JobsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ListCard } from "@ui/Card/ListCard";
import { JobsHit } from "./JobsPage";
import moment from "moment";

export default function JobsCard({ hit }: { hit: JobsHit }) {
let tags: string[] = [];
Expand All @@ -10,7 +11,7 @@ export default function JobsCard({ hit }: { hit: JobsHit }) {
return (
<ListCard
variant="job"
startDateTime={hit.contact?.name}
startDateTime={`${hit.contact?.name} - ${moment(hit.published_at).format('DD MMM, YYYY')}`}
image={hit.contact?.logo}
title={hit.job?.title}
description={hit.job?.description}
Expand Down
9 changes: 6 additions & 3 deletions workspaces/website/src/pages/jobs/JobsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import algoliasearch from "algoliasearch/lite";
import {
InstantSearch,
Configure,
useInfiniteHits,
useInfiniteHits
} from "react-instantsearch-hooks-web";
import { useRefinementList } from "react-instantsearch-hooks";
import { PageLayout } from "@ui/Layout/PageLayout";
Expand Down Expand Up @@ -55,8 +55,11 @@ export function JobsPage({ params, env, seo }: Props): JSX.Element | null {
indexName={`web_jobs_${env.ALGOLIA_INDEX}`}
>
<Configure
hitsPerPage={40}
facetsRefinements={{ locale: [params.locale], status: ['active'] }}
hitsPerPage={5}
facetsRefinements={{
locale: [params.locale],
status: ['active']
}}
/>
<JobsPageLayout params={params} seo={seo} />
</InstantSearch>
Expand Down

0 comments on commit 541ee4c

Please sign in to comment.