Skip to content

Commit

Permalink
newline
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Mar 16, 2024
1 parent 4c3a9b0 commit 77e3c28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/organization/[orgid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ const OrganizationById = ({ user, orgIds }) => {
className="border-l-4 border-primary p-2 leading-snug"
style={{ caretColor: "transparent" }}
>
{orgData?.description}
{/* add newline support if description has newlines */}
{orgData?.description.split("\n").map((str, index) => (
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
<p key={index}>{str}</p>
))}
</div>
) : null}
<div className="grid grid-cols-1 lg:grid-cols-4 gap-6 items-start">
Expand Down

0 comments on commit 77e3c28

Please sign in to comment.