From c3ea55a30a82bc3ca4ca498c747bcbc02bb23ffd Mon Sep 17 00:00:00 2001
From: Piotr Gawron <p.gawron@atcomp.pl>
Date: Thu, 6 Jun 2024 10:44:03 +0200
Subject: [PATCH] change button text on show/hide

---
 .../FunctionalArea/MapNavigation/MapNavigation.component.tsx    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/FunctionalArea/MapNavigation/MapNavigation.component.tsx b/src/components/FunctionalArea/MapNavigation/MapNavigation.component.tsx
index b5b638aa..c03fcf7f 100644
--- a/src/components/FunctionalArea/MapNavigation/MapNavigation.component.tsx
+++ b/src/components/FunctionalArea/MapNavigation/MapNavigation.component.tsx
@@ -88,7 +88,7 @@ export const MapNavigation = (): JSX.Element => {
           variantStyles="secondary"
           onClick={() => toggleComments()}
         >
-          Show Comments
+          {commentsOpen ? 'Hide Comments' : 'Show Comments'}
         </Button>
       </div>
     </div>
-- 
GitLab