From 50d7a8c8c5affcc4c149b5340c2067acdd874dfd Mon Sep 17 00:00:00 2001 From: benguedj <71835422+benguedj@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:02:58 +0200 Subject: [PATCH] fix: change the whatsapp redirect message to richtext (html) (#180) --- src/components/contact/ContactForm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/contact/ContactForm.js b/src/components/contact/ContactForm.js index 66003fa..a0f4bfd 100644 --- a/src/components/contact/ContactForm.js +++ b/src/components/contact/ContactForm.js @@ -1,4 +1,5 @@ import React, { useState, useEffect } from "react" +import parse from 'html-react-parser'; import { RequestContact, STORAGE_SOURCE, @@ -233,8 +234,8 @@ export const ContactForm = ({ Information - -
{activationContact?.whatsapp_redirect_message}
+ +
{parse(activationContact?.whatsapp_redirect_message ?? '')}