From 1422ab9edd44b90494817a1339df0854112d72e6 Mon Sep 17 00:00:00 2001 From: Nastya Date: Sun, 12 May 2024 02:54:10 +0300 Subject: [PATCH] result link event metrica --- .../ViewPublicationPage/ResultForm.tsx | 26 ++-- .../StartPageViewPublication/index.tsx | 120 +++++++++--------- lib/utils/hooks/metrics/useVkMetricsGoals.ts | 3 + .../hooks/metrics/useYandexMetricsGoals.ts | 3 + 4 files changed, 82 insertions(+), 70 deletions(-) diff --git a/lib/components/ViewPublicationPage/ResultForm.tsx b/lib/components/ViewPublicationPage/ResultForm.tsx index 24dda2d..5fa5aed 100644 --- a/lib/components/ViewPublicationPage/ResultForm.tsx +++ b/lib/components/ViewPublicationPage/ResultForm.tsx @@ -191,9 +191,8 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => { { p: (settings.cfg.resultInfo.showResultForm === "before" && !settings.cfg.score) || - (settings.cfg.resultInfo.showResultForm === "after" && - resultQuestion.content.redirect) + (settings.cfg.resultInfo.showResultForm === "after" && + resultQuestion.content.redirect) ? "20px" : "0", }} @@ -250,11 +249,16 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => { {settings.cfg.resultInfo.showResultForm === "after" && resultQuestion.content.redirect && (