inline small <p> ternary

This commit is contained in:
Jorik Schellekens 2020-09-23 12:02:26 +01:00
parent 79a0a1c7ba
commit 645d0ab6fc

View File

@ -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>
); );
}; };