Merged in feat/SW-1555-jobylon-feed-filter (pull request #1494)
Feat/SW-1555 jobylon feed filter * feat(SW-1555): Added jobylon feed component * feat(SW-1555): Added filter functionality for Jobylon feed Approved-by: Matilda Landström
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
"use client"
|
||||
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { dt } from "@/lib/dt"
|
||||
|
||||
import { OpenInNewSmallIcon } from "@/components/Icons"
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||
import { getIntl } from "@/i18n"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
import useLang from "@/hooks/useLang"
|
||||
|
||||
import styles from "./jobylonCard.module.css"
|
||||
|
||||
@@ -13,13 +18,13 @@ interface JobylonCardProps {
|
||||
job: JobylonItem
|
||||
}
|
||||
|
||||
export default async function JobylonCard({ job }: JobylonCardProps) {
|
||||
const intl = await getIntl()
|
||||
const lang = getLang()
|
||||
export default function JobylonCard({ job }: JobylonCardProps) {
|
||||
const intl = useIntl()
|
||||
const lang = useLang()
|
||||
const deadlineText = job.toDate
|
||||
? intl.formatMessage(
|
||||
{ id: "Deadline: {date}" },
|
||||
{ date: job.toDate.locale(lang).format("Do MMMM") }
|
||||
{ date: dt(job.toDate).locale(lang).format("Do MMMM") }
|
||||
)
|
||||
: intl.formatMessage({ id: "Open for application" })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user