colored header on post
This commit is contained in:
@@ -49,6 +49,8 @@ export default function PostOnFeed({ ad, liked, likeCountAdj, onLike, onEdit, on
|
||||
|
||||
const isClosed = ad.status === 'CLOSED';
|
||||
|
||||
const headAccentClass = ad.type === "found" ? " f-head-found" : " f-head-loss";
|
||||
|
||||
const typeBadge = (
|
||||
<div className={`f-type-badge ${ad.type === "loss" ? "f-type-loss" : "f-type-found"}`}>
|
||||
{ad.type === "loss" ? t('postCard.loss') : t('postCard.found')}
|
||||
@@ -58,7 +60,7 @@ export default function PostOnFeed({ ad, liked, likeCountAdj, onLike, onEdit, on
|
||||
return (
|
||||
<div className={`f-card${isClosed ? ' f-card-closed' : ''}`}>
|
||||
|
||||
<div className="f-card-head">
|
||||
<div className={`f-card-head${headAccentClass}`}>
|
||||
<div className="f-card-author">
|
||||
<div
|
||||
className="f-card-author-name"
|
||||
|
||||
Reference in New Issue
Block a user