@@ -41,7 +41,7 @@ export function Item({link, name, icon, author, description, tags, fictionalDate
|
|||||||
|
|
||||||
function ItemMeta({kind, value, className}) {
|
function ItemMeta({kind, value, className}) {
|
||||||
// Hide empty fields
|
// Hide empty fields
|
||||||
if (value == null || value == "") {
|
if (value == null || value === "") {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,5 +62,9 @@ function ItemMeta({kind, value, className}) {
|
|||||||
case "author": {
|
case "author": {
|
||||||
return <div className="author color-menu">{value}</div>
|
return <div className="author color-menu">{value}</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default: {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user