Skip to content

Commit

Permalink
feat: hide id in resource sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
berenteb committed Mar 9, 2024
1 parent bb0430d commit 0b2147c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/map/resource-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -34,7 +36,8 @@ export function ResourceSheet({ resource, className, ...props }: ResourceSheetPr
{...props}
>
<StyledText className='text-2xl'>
{savedResource?.title} ({savedResource?.id})
{savedResource?.title}
{DISPLAY_ID && ` (${savedResource?.id})`}
</StyledText>
<StyledText className='text-slate-500 text-lg'>{savedResource?.description.hu}</StyledText>
</Animated.View>
Expand Down

0 comments on commit 0b2147c

Please sign in to comment.