From b4c86835edae8c1df6d32998a0be40ee33809069 Mon Sep 17 00:00:00 2001 From: Johannes <72809645+jobenjada@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:58:19 +0200 Subject: [PATCH] fix: survey padding and add report survey (#2763) --- .../web/app/s/[surveyId]/components/LegalFooter.tsx | 13 ++++--------- packages/surveys/src/components/general/Survey.tsx | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/apps/web/app/s/[surveyId]/components/LegalFooter.tsx b/apps/web/app/s/[surveyId]/components/LegalFooter.tsx index 9e6ba7379f..f45e6929c8 100644 --- a/apps/web/app/s/[surveyId]/components/LegalFooter.tsx +++ b/apps/web/app/s/[surveyId]/components/LegalFooter.tsx @@ -15,14 +15,6 @@ export const LegalFooter = ({ }: LegalFooterProps) => { if (!IMPRINT_URL && !PRIVACY_URL && !IS_FORMBRICKS_CLOUD) return null; - const createMailToLink = (surveyLink) => { - const subject = encodeURIComponent("Reporting this survey"); - const body = encodeURIComponent( - `I report the survey to the Formbricks team as it is spam, abusive or violates the terms.\n\n${surveyLink}` - ); - return `mailto:hola@formbricks.com?subject=${subject}&body=${body}`; - }; - return (