Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstrojil committed Sep 4, 2024
1 parent 4dbe9de commit 377becc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/components/LanguagesBox.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { LanguageSkill } from "../data/types";
import { Badge } from "../components";
import { Languages } from "../data/types";
import { Badge } from "../components";

type Props = {
languages: Array<LanguageSkill>;
languages: Languages;
};

export function LanguagesBox({ languages }: Props) {
Expand All @@ -15,7 +15,7 @@ export function LanguagesBox({ languages }: Props) {
.filter(({ level }) => level.startsWith("c"))
.map(({ language, level }) => (
<li key={language} className="my-1">
<Badge text={level} variant="primary" uppercase/>
<Badge text={level} variant="primary" uppercase />
<span className="ml-2">{language}</span>
</li>
))}
Expand All @@ -25,7 +25,7 @@ export function LanguagesBox({ languages }: Props) {
.filter(({ level }) => !level.startsWith("c"))
.map(({ language, level }) => (
<li key={language} className="my-1">
<Badge text={level} variant="secondary" uppercase/>
<Badge text={level} variant="secondary" uppercase />
<span className="ml-2">{language}</span>
</li>
))}
Expand Down

0 comments on commit 377becc

Please sign in to comment.