From 0b2147c311f4d6a8238ec7ae238bdca41d6e9d8b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?B=C3=A1lint=20Berente?=
<30603208+berenteb@users.noreply.github.com>
Date: Sun, 10 Mar 2024 00:06:16 +0100
Subject: [PATCH] feat: hide id in resource sheet
---
components/map/resource-sheet.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/components/map/resource-sheet.tsx b/components/map/resource-sheet.tsx
index 8ee78dc..50b937c 100644
--- a/components/map/resource-sheet.tsx
+++ b/components/map/resource-sheet.tsx
@@ -6,6 +6,8 @@ import { useAnimated } from '../../utils/animation.utils';
import { cn } from '../../utils/common.utils';
import { StyledText } from '../base/text';
+const DISPLAY_ID = false;
+
interface ResourceSheetProps extends ViewProps {
resource: MapResource | undefined;
}
@@ -34,7 +36,8 @@ export function ResourceSheet({ resource, className, ...props }: ResourceSheetPr
{...props}
>
- {savedResource?.title} ({savedResource?.id})
+ {savedResource?.title}
+ {DISPLAY_ID && ` (${savedResource?.id})`}
{savedResource?.description.hu}