Skip to content

Commit

Permalink
Enhance type safety in skills management
Browse files Browse the repository at this point in the history
- Added type annotations for skill categories in `page.tsx` to improve type safety and maintainability.
- Updated the mapping logic for skill categories to ensure proper type handling, enhancing code clarity.
  • Loading branch information
seeschweiler committed Dec 31, 2024
1 parent 9c3efe5 commit deaa4b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export default async function Resume() {
</h2>
{siteConfig.displaySkillCategories ? (
<div className="space-y-6">
{skills.skillCategories.map((category) => (
{skills.skillCategories.map((category: SkillCategory) => (
<div key={category.category}>
<h3 className="text-lg font-medium text-gray-800 dark:text-gray-200 mb-2">
{category.category}
Expand All @@ -397,7 +397,7 @@ export default async function Resume() {
</div>
) : (
<div className="flex flex-wrap gap-2">
{skills.skillCategories.flatMap((category) =>
{skills.skillCategories.flatMap((category: SkillCategory) =>
category.skills.map((skill: string) => (
<span
key={skill}
Expand Down

0 comments on commit deaa4b6

Please sign in to comment.