Skip to content

Commit 308c70a

Browse files
committed
feat: properly format event descriptions
1 parent e1c552d commit 308c70a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pages/community/sections/eventsPreview/SingleEvents/sections/EventDescription.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import PropTypes from "prop-types";
22
import React from "react";
3+
import formatEventDescription from "../../../../../../utilities/formatEventDescription";
34

45
function EventDescription({ eventDesc }) {
56
return (
6-
<div className="w-full text-center max-w-3xl mx-auto text-sm md:text-[15px] md:leading-[22px] font-normal text-gray-600">
7-
{eventDesc}
7+
<div className="w-full max-w-3xl mx-auto text-sm md:text-[15px] md:leading-[22px] font-normal text-gray-600">
8+
{formatEventDescription(eventDesc)}
89
</div>
910
);
1011
}

0 commit comments

Comments
 (0)