Skip to content

Commit

Permalink
refactor: Render recipe description as HTMLText
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoRibeiro25 committed Aug 26, 2023
1 parent c5473e0 commit 1736d29
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/Recipe/components/RecipeContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ const RecipeContent: React.FC<RecipeContentProps> = ({ recipe }) => {
</Reveal>

<Reveal width="100%" animation="slide-bottom">
<p className="mt-2 text-justify text-gray-500 text-md">
{recipe.description ?? 'This recipe has no description.'}
</p>
<HTMLText
text={recipe.description ?? 'This recipe has no description.'}
className="mt-2 text-justify text-gray-500 text-md"
/>

<div className="flex flex-col mt-4 sm:flex-row">
<div className="flex flex-col sm:items-center sm:flex-row">
Expand Down

0 comments on commit 1736d29

Please sign in to comment.