Skip to content

Commit

Permalink
fix: update competancy fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelbr committed Dec 10, 2024
1 parent a083903 commit 9973ee3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
5 changes: 3 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@
"consultants": "consultants",
"location": "Location",
"all": "All",
"Project Management": "Project Management",
"Design": "Design",
"Utvikling": "Development",
"Administasjon": "Administration",
"Ledelse": " ",
"Prosjekt- og produktledelse": "Project and product management",
"Strategi": "Strategy",
"field": "Field",
"showMore": "Show all"
},
Expand Down
5 changes: 3 additions & 2 deletions messages/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
"consultants": "konsulenter",
"location": "Lokasjon",
"all": "Alle",
"Project Management": "Prosjektledelse",
"Design": "Design",
"Utvikling": "Utvikling",
"Administasjon": "Administrasjon",
"Ledelse": "Ledelse",
"Prosjekt- og produktledelse": "Prosjekt- og produktledelse",
"Strategi": "Strategi",
"field": "Fag",
"showMore": "Vis alle"
},
Expand Down
5 changes: 3 additions & 2 deletions messages/se.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
"consultants": "konsulter",
"location": "Kontor",
"all": "Alla",
"Project Management": "Projektledning",
"Prosjekt- og produktledelse": "Produkt- och projektledning",
"Design": "Design",
"Utvikling": "Utveckling",
"Administasjon": "Administration",
"Ledelse": "Ledelse",
"Strategi": "Strategi",
"field": "Fält",
"showMore": "Vis alla"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/employeeCard/EmployeeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function EmployeeCard({
key={competence}
as="span"
>
{t(competence)}
{t.has(competence) ? t(competence) : competence}
</Text>
))
)}
Expand Down
5 changes: 3 additions & 2 deletions src/components/sections/employees/EmployeeList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ import { EmployeeListSkeleton } from "./EmployeeSkeleton";

const competences: Competence[] = [
"Utvikling",
"Administasjon",
"Ledelse",
"Design",
"Project Management",
"Prosjekt- og produktledelse",
"Strategi",
];

export interface EmployeesProps {
Expand Down
5 changes: 3 additions & 2 deletions src/types/employees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ export function isChewbaccaEmployeesResponse(
}

export type Competence =
| "Project Management"
| "Design"
| "Utvikling"
| "Administasjon";
| "Prosjekt- og produktledelse"
| "Ledelse"
| "Strategi";

export interface ChewbaccaEmployee {
email?: string | null;
Expand Down

0 comments on commit 9973ee3

Please sign in to comment.