Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
sayandedotcom committed Jan 24, 2025
1 parent 13265f4 commit f9185f7
Showing 1 changed file with 60 additions and 29 deletions.
89 changes: 60 additions & 29 deletions apps/web/components/custom-components/post-card/post-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ export const Tags = ({
salary,
role,
skills,
}) => {
jobCode,
jobURL,
}: any) => {
const { width } = useWindowSize();

return (
Expand All @@ -212,21 +214,25 @@ export const Tags = ({
{companyName}
</Badge>

<Badge
search={role}
search_query={"jobRole"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
💼 {role}
</Badge>
{role && (
<Badge
search={role}
search_query={"jobRole"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
💼 {role}
</Badge>
)}

<Badge
search={locationType}
search_query={"jobLocationType"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
{locationType}
</Badge>
{locationType && (
<Badge
search={locationType}
search_query={"jobLocationType"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
{locationType}
</Badge>
)}

{location && (
<Badge
Expand All @@ -237,21 +243,26 @@ export const Tags = ({
📍 {location}
</Badge>
)}
<Badge
search={experience}
search_query={"jobExperience"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
🧑‍💻 {experience} + years of experience
</Badge>

<Badge
search={jobType}
search_query={"jobType"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
🧑‍💼 {jobType}
</Badge>
{experience && (
<Badge
search={experience}
search_query={"jobExperience"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
🧑‍💻 {experience} + years of experience
</Badge>
)}

{jobType && (
<Badge
search={jobType}
search_query={"jobType"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
🧑‍💼 {jobType}
</Badge>
)}

{allTags && (
<>
Expand Down Expand Up @@ -282,6 +293,26 @@ export const Tags = ({
+7
</Badge>
)}

{jobURL && (
<Badge
search={jobURL}
search_query={"jobURL"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
{jobURL}
</Badge>
)}

{jobCode && (
<Badge
search={jobCode}
search_query={"jobCode"}
className="hover:bg-foreground hover:text-background cursor-pointer border border-black dark:border-gray-200"
variant="secondary">
{jobCode}
</Badge>
)}
</>
);
};
Expand Down

0 comments on commit f9185f7

Please sign in to comment.