feat(icon): Hide the icon when there is no href value
Hide the icon when the social link is empty.
This commit is contained in:
parent
8a4358fade
commit
a6564bae52
@ -17,6 +17,8 @@ const components = {
|
||||
}
|
||||
|
||||
const SocialIcon = ({ kind, href, size = 8 }) => {
|
||||
if (!href) return null
|
||||
|
||||
const SocialSvg = components[kind]
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user