feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
This commit is contained in:
@@ -24,10 +24,14 @@ export default function JobylonCard({ job }: JobylonCardProps) {
|
||||
const lang = useLang()
|
||||
const deadlineText = job.toDate
|
||||
? intl.formatMessage(
|
||||
{ id: "Deadline: {date}" },
|
||||
{
|
||||
defaultMessage: "Deadline: {date}",
|
||||
},
|
||||
{ date: dt(job.toDate).locale(lang).format("Do MMMM") }
|
||||
)
|
||||
: intl.formatMessage({ id: "Open for application" })
|
||||
: intl.formatMessage({
|
||||
defaultMessage: "Open for application",
|
||||
})
|
||||
|
||||
return (
|
||||
<div className={styles.jobylonCard}>
|
||||
@@ -53,7 +57,9 @@ export default function JobylonCard({ job }: JobylonCardProps) {
|
||||
asChild
|
||||
>
|
||||
<a href={job.url} target="_blank" rel="noopener noreferrer">
|
||||
{intl.formatMessage({ id: "View & apply" })}
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "View & apply",
|
||||
})}
|
||||
<MaterialIcon icon="open_in_new" size={20} />
|
||||
</a>
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user