From cb2d2e921efe056d345dc8832b858e2682240f61 Mon Sep 17 00:00:00 2001 From: Sine Jespersen Date: Fri, 20 Dec 2024 10:02:59 +0100 Subject: [PATCH] extract text to const --- src/components/routes/RoutePage.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/routes/RoutePage.jsx b/src/components/routes/RoutePage.jsx index 00517c6..89104d1 100644 --- a/src/components/routes/RoutePage.jsx +++ b/src/components/routes/RoutePage.jsx @@ -44,6 +44,8 @@ function RoutePage() { } const { title, tags, points, totalDuration, distance, description } = selectedRoute; + const consentText = + "Du har ikke givet samtykke, derfor kan vi ikke vise et kort her. Vil du ændre det, kan du trykke her."; return ( <> @@ -58,12 +60,12 @@ function RoutePage() { {!openStreetMapConsent && !focusOnText && ( )} {!openStreetMapConsent && focusOnText && ( )}