inline small <p> ternary
This commit is contained in:
parent
79a0a1c7ba
commit
645d0ab6fc
@ -32,13 +32,11 @@ const GroupPreview: React.FC<IProps> = ({ group }: IProps) => {
|
|||||||
? group.short_description
|
? group.short_description
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
const descriptionP = description ? <p>{description}</p> : null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="groupPreview">
|
<div className="groupPreview">
|
||||||
<GroupAvatar group={group} />
|
<GroupAvatar group={group} />
|
||||||
<h1>{group.name}</h1>
|
<h1>{group.name}</h1>
|
||||||
{descriptionP}
|
{description ? <p>{description}</p> : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user