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:
@@ -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} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user