Skip to content

Commit

Permalink
Added some conditionals and clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gxjansen committed Oct 24, 2024
1 parent d8f9b3d commit aef5b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/pages/jobs/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ const freelancerImage: ImageMetadata | undefined = imageFiles[imagePath];
</div>
)}
<div class="flex items-center mb-4 mt-4 ml-3 gap-2">
{freelancer.forumProfile && (
<CQIcon profileUrl={freelancer.forumProfile} size="sm" />
)}
{freelancer.linkedIn && (
<a href={freelancer.linkedIn} target="_blank" rel="noopener noreferrer" class="text-neutral-800 dark:text-neutral-100 inline-flex items-center">
<Icon name="mdi:linkedin" class="w-6 h-6 mr-2" />
Expand Down
9 changes: 2 additions & 7 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// Add the interface for Spryker certifications
interface SprykerCertifications {
backEndDeveloper: boolean;
solutionArchitect: boolean;
}
import type { SprykerCertifications } from '.././types';

// Format the date to a string
function formatDate(date: Date): string {
Expand Down Expand Up @@ -39,6 +35,5 @@ export {
formatDate,
capitalize,
getFlagEmoji,
hasSprykerCertifications,
type SprykerCertifications // Export the interface as well
hasSprykerCertifications
};

0 comments on commit aef5b11

Please sign in to comment.