Skip to content
Snippets Groups Projects
Commit 645d0ab6 authored by Jorik Schellekens's avatar Jorik Schellekens
Browse files

inline small <p> ternary

parent 79a0a1c7
Branches
Tags
No related merge requests found
...@@ -32,13 +32,11 @@ const GroupPreview: React.FC<IProps> = ({ group }: IProps) => { ...@@ -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>
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment