mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-28 06:12:25 +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) => (
|
const Contacts = ({ contacts }: Props) => (
|
||||||
<div className={styles['contacts']}>
|
<div className={styles['contacts']}>
|
||||||
<ul className={styles['contacts__list']}>
|
<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}>
|
<li className={styles['contacts__list-item']} key={name}>
|
||||||
<a
|
<a
|
||||||
className={styles['contacts__list-item-link']}
|
className={styles['contacts__list-item-link']}
|
||||||
|
Loading…
Reference in New Issue
Block a user