diff --git a/src/templates/contact-us/ContactsSection.jsx b/src/templates/contact-us/ContactsSection.jsx index c29e57ad7..76465ff81 100644 --- a/src/templates/contact-us/ContactsSection.jsx +++ b/src/templates/contact-us/ContactsSection.jsx @@ -1,10 +1,10 @@ -import { sanitizeUrl } from "@braintree/sanitize-url" import DOMPurify from "dompurify" import PropTypes from "prop-types" import { forwardRef } from "react" import editorStyles from "styles/isomer-cms/pages/Editor.module.scss" +import { sanitiseTemplateUrl } from "templates/utils/sanitiseTemplateUrl" import { getClassNames } from "templates/utils/stylingUtils" const Contact = forwardRef(({ contact }, ref) => ( @@ -30,7 +30,7 @@ const Contact = forwardRef(({ contact }, ref) => ( ])} > event.preventDefault()} > {d[key]} @@ -47,7 +47,7 @@ const Contact = forwardRef(({ contact }, ref) => ( ])} > event.preventDefault()} > {d[key]} diff --git a/src/templates/contact-us/FeedbackSection.jsx b/src/templates/contact-us/FeedbackSection.jsx index bc3b08047..005a3a6f0 100644 --- a/src/templates/contact-us/FeedbackSection.jsx +++ b/src/templates/contact-us/FeedbackSection.jsx @@ -1,9 +1,9 @@ -import { sanitizeUrl } from "@braintree/sanitize-url" import PropTypes from "prop-types" import { forwardRef } from "react" import editorStyles from "styles/isomer-cms/pages/Editor.module.scss" +import { sanitiseTemplateUrl } from "templates/utils/sanitiseTemplateUrl" import { getClassNames } from "templates/utils/stylingUtils" const TemplateFeedbackSection = forwardRef(({ feedback }, ref) => ( @@ -38,7 +38,7 @@ const TemplateFeedbackSection = forwardRef(({ feedback }, ref) => ( If you have a query, feedback or wish to report a problem related to this website, please fill in the{" "} event.preventDefault()} diff --git a/src/templates/contact-us/LocationsSection.jsx b/src/templates/contact-us/LocationsSection.jsx index d6a26720d..6c1243153 100644 --- a/src/templates/contact-us/LocationsSection.jsx +++ b/src/templates/contact-us/LocationsSection.jsx @@ -1,9 +1,9 @@ -import { sanitizeUrl } from "@braintree/sanitize-url" import PropTypes from "prop-types" import { forwardRef } from "react" import editorStyles from "styles/isomer-cms/pages/Editor.module.scss" +import { sanitiseTemplateUrl } from "templates/utils/sanitiseTemplateUrl" import { getClassNames } from "templates/utils/stylingUtils" const LocationHours = ({ operatingHours }) => ( @@ -38,8 +38,8 @@ const LocationAddress = ({ location }) => (