mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 15:29:16 +01:00
Hides the contact icon if empty in config
This commit is contained in:
parent
fa0966be2f
commit
0f01ddf4e0
@ -13,7 +13,8 @@ type Props = {
|
||||
const Contacts = ({ contacts }: Props) => (
|
||||
<div className={styles['contacts']}>
|
||||
<ul className={styles['contacts__list']}>
|
||||
{Object.keys(contacts).map((name) => (
|
||||
{Object.keys(contacts).map((name) =>
|
||||
!contacts[name] ? null : (
|
||||
<li className={styles['contacts__list-item']} key={name}>
|
||||
<a
|
||||
className={styles['contacts__list-item-link']}
|
||||
|
Loading…
Reference in New Issue
Block a user