Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

feat: add markdown support fot testimonial #3765

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/user/UserTestimonials.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Image from "next/image";
import Link from "next/link";
import Alert from "../Alert";
import FallbackImage from "../FallbackImage";
import { ReactMarkdown } from "react-markdown/lib/react-markdown";

export default function UserTestimonials({ data }) {
return (
Expand Down Expand Up @@ -45,7 +46,7 @@ export default function UserTestimonials({ data }) {
</a>
</div>
<div className="prose prose-sm max-w-none w-fit text-gray-500">
<p>{testimonial.description}</p>
<ReactMarkdown>{testimonial.description}</ReactMarkdown>
</div>
</div>
</div>
Expand Down