Skip to content

Commit

Permalink
add publication date to JobData
Browse files Browse the repository at this point in the history
  • Loading branch information
YellouMeli committed Jul 27, 2024
1 parent bdc5f4b commit 05fbb4d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/JobCard/JobCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ interface JobCardProps {
jobPostingUrl: string;
location:string,
salary: string;
publicationDate:string;
tags: string[];
}

const JobCard: FC<JobCardProps> = ({ title, company, logoUrl, jobPostingUrl, location, salary, tags }) => {
const JobCard: FC<JobCardProps> = ({ title, company, logoUrl, jobPostingUrl, location, salary, publicationDate, tags }) => {
const handleReadMoreClick = () => {
if (jobPostingUrl) {
window.open(jobPostingUrl, '_blank', 'noopener,noreferrer')
Expand Down Expand Up @@ -70,11 +71,7 @@ const JobCard: FC<JobCardProps> = ({ title, company, logoUrl, jobPostingUrl, loc
</Grid>
<Grid item>
<Typography fontSize="medium">
{new Date().toLocaleDateString('ja-JP', {
year: 'numeric',
month: '2-digit',
day: '2-digit'
})}
{ publicationDate }
</Typography>
</Grid>
</Grid>
Expand Down
1 change: 1 addition & 0 deletions src/routes/JobBoard/JobBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const JobBoard:FC = () => {
location={job.location}
jobPostingUrl={job.jobPostingUrl}
salary={job.salary}
publicationDate={job.publicationDate}
tags={job.tags}
/>
))}
Expand Down
1 change: 1 addition & 0 deletions src/utils/jobData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const jobData = [
location: 'Tokyo, Japan',
jobPostingUrl: '#',
salary: '¥9M ~ ¥11M annually',
publicationDate: '2024/07/27',
tags: ['Full Time', 'Senior Level', 'Remote', 'English']
}
]
Expand Down

0 comments on commit 05fbb4d

Please sign in to comment.