From 17cd35929d8a89433f12d29ddf712a86a7f1572c Mon Sep 17 00:00:00 2001 From: nzambello Date: Wed, 17 Apr 2024 16:39:46 +0300 Subject: [PATCH] feat: allow null position as negation, dont display that as venue --- src/components/Header/Header.tsx | 10 ++-- .../PositionDrawer/PositionDrawer.tsx | 12 ++++- src/components/VenueWidget/VenueWidget.tsx | 49 ++++++++++++++----- .../__snapshots__/VenueWidget.test.tsx.snap | 43 ++++++++++++++-- src/locales/en.json | 1 + src/locales/it.json | 1 + 6 files changed, 95 insertions(+), 21 deletions(-) diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index cf7e7a35..b76714fe 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -109,9 +109,13 @@ const Header: React.FC = ({ )} {memori.needsPosition && position && (
- - {position.placeName} - + {position.latitude !== 0 && + position.longitude !== 0 && + position.placeName !== 'Position' && ( + + {position.placeName} + + )}
+ {showGpsButton && ( + {showUncertainty && (