Skip to content

Commit

Permalink
Tonyvanswet/ele 1579 better message for no data tooltip (electricitym…
Browse files Browse the repository at this point in the history
  • Loading branch information
tonypls authored Jan 12, 2023
1 parent 8a812d7 commit ca9f0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/features/map/MapTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function MapTooltip() {
const [selectedDatetime] = useAtom(selectedDatetimeIndexAtom);
const [timeAverage] = useAtom(timeAverageAtom);
const [isMapMoving] = useAtom(mapMovingAtom);
const { i18n } = useTranslation();
const { i18n, __ } = useTranslation();
const { data } = useGetState();

if (!hoveredZone || isMapMoving) {
Expand Down Expand Up @@ -128,7 +128,7 @@ export default function MapTooltip() {
<div>
<ZoneName zone={hoveredZone.zoneId} textStyle="text-base" />
<div className="flex self-start text-xs">{formattedDate}</div>
<p className="text-start">No data available</p>
<p className="text-start">{__('tooltips.noParserInfo')}</p>
</div>
</div>
</Portal.Root>
Expand Down

0 comments on commit ca9f0fa

Please sign in to comment.