Merged in fix/lint-issues (pull request #1678)

Fix lint issues in design-system and scandic-web

* Remove unused color prop from LogoAndIllustrationProps to fix lint issues

* Fix lint issues in web

* Fix logos type


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-03-31 12:27:32 +00:00
parent 9d584887ad
commit 93aafe5525
37 changed files with 85 additions and 155 deletions

View File

@@ -31,13 +31,9 @@ export default async function ContactRow({ contact }: ContactRowProps) {
let Icon = null
if (contact.contact_field.includes("email")) {
Icon = function MailIcon(props: MaterialIconSetIconProps) {
return <MaterialIcon icon="mail" {...props} />
}
Icon = MailIcon
} else if (contact.contact_field.includes("phone")) {
Icon = function PhoneIcone(props: MaterialIconSetIconProps) {
return <MaterialIcon icon="phone" {...props} />
}
Icon = PhoneIcon
}
let openableLink = val
@@ -66,3 +62,10 @@ export default async function ContactRow({ contact }: ContactRowProps) {
</div>
)
}
function PhoneIcon(props: MaterialIconSetIconProps) {
return <MaterialIcon icon="phone" {...props} />
}
function MailIcon(props: MaterialIconSetIconProps) {
return <MaterialIcon icon="mail" {...props} />
}