Skip to content

Commit

Permalink
code clean: add comments, colors corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
YellouMeli committed Aug 4, 2024
1 parent 9a85675 commit 92981bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/JobCard/JobCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const JobCard: FC<JobCardProps> = ({ job }) => {
window.open(job.jobPostingUrl, '_blank', 'noopener,noreferrer')
}

return <Card sx={{ bgcolor: '#512da8', color: 'white', width: '100%' }}>
return <Card sx={{ bgcolor: ' theme.palette.primary.light', width: '100%' }}>
<CardContent>
<Grid container spacing={1} alignItems="center">
<Grid item xs={12} sm={12} md={2} display="flex" justifyContent="center">
Expand Down Expand Up @@ -47,7 +47,7 @@ const JobCard: FC<JobCardProps> = ({ job }) => {
</Grid>
<Stack direction='row' spacing={1} mt={2} justifyContent="flex-start">
{job.tags.map((tag, index) => (
<Chip key={index} label={tag} sx={{ bgcolor: '#6A1B9A', color: 'white', height: 32, borderRadius: '8px' }} />
<Chip key={index} label={tag} sx={{ bgcolor: '#6A1B9A', height: 32, borderRadius: '8px' }} />
))}
</Stack>
</Grid>
Expand Down
4 changes: 2 additions & 2 deletions src/types/JobListing.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
type JobListing = {
title:string,
title: string,
company: string,
logoUrl: string,
location: string,
jobPostingUrl: string,
salary: string,
publicationDate: string,
publicationDate: string, // date format should be YYYY/MM/DD
tags: string []
}

Expand Down

0 comments on commit 92981bc

Please sign in to comment.