From 8fb369c1d41b079b232255e32a2131a6e0eee19b Mon Sep 17 00:00:00 2001 From: anemne <63043552+anemne@users.noreply.github.com> Date: Wed, 27 Nov 2024 08:42:21 +0100 Subject: [PATCH 1/2] v3 - customer case styling fixes (#911) * fix styling on prijectinfo section * changes consultant card and wrapping in project info container * linting fixes --- messages/no.json | 2 +- .../CustomerCaseEmployeeCard.tsx | 75 ++++++------------- .../customerCaseEmployeeCard.module.css | 40 ++++------ .../customerCase/customerCase.module.css | 1 - .../customerCaseProjectInfo.module.css | 6 +- .../CustomerCaseConsultants.tsx | 2 +- src/components/text/text.module.css | 14 +++- 7 files changed, 57 insertions(+), 83 deletions(-) diff --git a/messages/no.json b/messages/no.json index cfb522435..31edc26ed 100644 --- a/messages/no.json +++ b/messages/no.json @@ -9,7 +9,7 @@ "industry": "Bransje", "delivery": "Leveranse", "variants": "Variantene", - "in_project": "Varianter i prosjektet", + "in_project": "Varianter i arbeid", "design": "Design", "development": "Utvikling", "project_management": "Prosjektledelse", diff --git a/src/components/customerCaseEmployeeCard/CustomerCaseEmployeeCard.tsx b/src/components/customerCaseEmployeeCard/CustomerCaseEmployeeCard.tsx index 14ec24d4c..bab24148b 100644 --- a/src/components/customerCaseEmployeeCard/CustomerCaseEmployeeCard.tsx +++ b/src/components/customerCaseEmployeeCard/CustomerCaseEmployeeCard.tsx @@ -1,13 +1,8 @@ import Image from "next/image"; -import Link from "next/link"; -import { useTranslations } from "next-intl"; -import CustomLink from "src/components/link/CustomLink"; import Text from "src/components/text/Text"; import formatPhoneNumber from "src/components/utils/formatPhoneNumber"; import { ChewbaccaEmployee } from "src/types/employees"; -import { aliasFromEmail } from "src/utils/employees"; -import { LinkType } from "studio/lib/interfaces/navigation"; import styles from "./customerCaseEmployeeCard.module.css"; @@ -18,13 +13,8 @@ export interface CustomerCaseEmployeeCardProps { } export default function CustomerCaseEmployeeCard({ - currentLanguage, employee, - employeePageSlug, }: CustomerCaseEmployeeCardProps) { - const title =
{employee.name}
; - const t = useTranslations("custom_link"); - return ( employee.imageThumbUrl && employee.name && @@ -39,49 +29,32 @@ export default function CustomerCaseEmployeeCard({ />{employee.email}
- )} - {employee.telephone && ( -- {formatPhoneNumber(employee.telephone)} -
- )} - {employeePageSlug && ( -