Skip to content

Commit

Permalink
Merge pull request #36 from SaqibSyed1014/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
SaqibSyed1014 authored Sep 3, 2024
2 parents 5200c85 + 6684be7 commit 191eb2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/pages/home/FeaturedJobs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const sliderBreakpoints = {
:breakpoints="sliderBreakpoints"
class="jobs-slider z-20 mt-8"
>
<swiper-slide v-for="job in jobListings" class="md:!w-[340px] my-1">
<swiper-slide v-for="job in jobListings" class="md:!w-[340px] max-h-full !h-auto my-1">
<JobCard :job="job" :card-form="true" :show-job-description="false" />
</swiper-slide>
</swiper-container>
Expand Down
4 changes: 2 additions & 2 deletions components/pages/home/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ register();
const router = useRouter();
const jobStore = useJobStore();
const { jobListings, itemsFound } = storeToRefs(jobStore)
const { jobListings } = storeToRefs(jobStore);
function searchJobs(filters :JobSearchFilters) {
jobStore.setCoordinates(filters.coordinates); // saving coordinates in store for persistence purpose
Expand Down Expand Up @@ -64,7 +64,7 @@ function searchJobs(filters :JobSearchFilters) {
<div class="bg-brand-100 w-[650px] h-[350px] absolute -bottom-1/2 -left-1/4 blur-3xl z-[-1]"></div>
</div>

<template v-if="itemsFound !== 0">
<template v-if="jobListings.length !== 0">
<swiper-container
:loop="true"
:space-between="20"
Expand Down
2 changes: 1 addition & 1 deletion segments/jobs/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useJobStore = defineStore('jobStore', {
getters: {
jobListings: (state) :Job[] => state.jobsList.map(job => ({
...job,
date_posted: job.date_posted.slice(0, job.date_posted.indexOf('00:00:00'))
date_posted: convertRFCDateStringToLocaleDate(job?.date_posted)
})),
jobDetails: (state) :JobDetails | null => {
const jobDetail = state.singleJob?.job_details
Expand Down

0 comments on commit 191eb2e

Please sign in to comment.