diff --git a/app/src/frontend/building/data-containers/community.css b/app/src/frontend/building/data-containers/community.css index d807fa79..1e7c3bf0 100644 --- a/app/src/frontend/building/data-containers/community.css +++ b/app/src/frontend/building/data-containers/community.css @@ -1,5 +1,5 @@ .community-opinion-pane { padding-top: 0.5em; padding-bottom: 0.5em; - border-bottom: 1px dashed gray; + border-bottom: 1px solid gray; } \ No newline at end of file diff --git a/app/src/frontend/building/data-containers/community.tsx b/app/src/frontend/building/data-containers/community.tsx index eec04d8d..863f3c8d 100644 --- a/app/src/frontend/building/data-containers/community.tsx +++ b/app/src/frontend/building/data-containers/community.tsx @@ -20,6 +20,9 @@ import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-e const CommunityView: React.FunctionComponent = (props) => { const worthKeepingReasonsNonEmpty = Object.values(props.building.community_type_worth_keeping_reasons ?? {}).some(x => x); return <> + + We are testing a new feature in this section! Switch between different colour maps by using the dropdown in the legend pane. +
Can you share your opinion on how well the building works? diff --git a/app/src/frontend/components/info-box.tsx b/app/src/frontend/components/info-box.tsx index f6e4f5c3..fcaf0efc 100644 --- a/app/src/frontend/components/info-box.tsx +++ b/app/src/frontend/components/info-box.tsx @@ -2,15 +2,16 @@ import React from 'react'; interface InfoBoxProps { msg?: string; + type?: 'info' | 'warning' } -const InfoBox: React.FC = (props) => ( +const InfoBox: React.FC = ({msg, children, type = 'info'}) => ( <> { - (props.msg || props.children) && -
- { props.msg ?? '' } - { props.children } + (msg || children) && +
+ { msg ?? '' } + { children }
}