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:
CypressKuo 2021-03-20 22:47:09 +08:00
parent 8a4358fade
commit a6564bae52

View File

@ -17,6 +17,8 @@ const components = {
}
const SocialIcon = ({ kind, href, size = 8 }) => {
if (!href) return null
const SocialSvg = components[kind]
return (