diff --git a/src/app/(default)/climb/[[...slug]]/components/ContentBlock.tsx b/src/app/(default)/climb/[[...slug]]/components/ContentBlock.tsx index 39291056d..04db1c8b1 100644 --- a/src/app/(default)/climb/[[...slug]]/components/ContentBlock.tsx +++ b/src/app/(default)/climb/[[...slug]]/components/ContentBlock.tsx @@ -1,4 +1,5 @@ import { Climb } from '@/js/types' +import Markdown from 'react-markdown' export const ContentBlock: React.FC> = ({ content: { description, location, protection } }) => { return ( @@ -6,19 +7,18 @@ export const ContentBlock: React.FC> = ({ content: { desc

Description

- {description} - + {description} {(location?.trim() !== '') && ( <>

Location

- {location} + {location} )} {(protection?.trim() !== '') && ( <>

Protection

- {protection} + {protection} )} diff --git a/src/components/maps/GlobalMap.tsx b/src/components/maps/GlobalMap.tsx index 2076aaa69..18c92f681 100644 --- a/src/components/maps/GlobalMap.tsx +++ b/src/components/maps/GlobalMap.tsx @@ -63,6 +63,9 @@ export const GlobalMap: React.FC = ({ crags: true }) + console.log('mapinstance', mapInstance); + + const setActiveFeatureVisual = (feature: ActiveFeature | null, fState: FeatureState): void => { if (feature == null || mapInstance == null) return mapInstance.setFeatureState({