feat: v0.3.1 — show app version in header (sourced from package.json)

This commit is contained in:
2026-09-17 06:37:28 +00:00
parent b7796e5d78
commit b011953087
6 changed files with 40 additions and 1 deletions
+2
View File
@@ -3,6 +3,7 @@
import { useEffect, useRef, useState } from 'react';
import * as maplibregl from 'maplibre-gl';
import 'maplibre-gl/dist/maplibre-gl.css';
import pkg from '../package.json';
const EUROPE_CENTER: [number, number] = [10, 52];
const INITIAL_ZOOM = 4;
@@ -93,6 +94,7 @@ export default function Map() {
<div className="map-wrap">
<header data-testid="app-header" className="app-header">
<h1>Flight Ops</h1>
<small>v{pkg.version}</small>
<span data-testid="airport-count">
{airportCount === null ? 'loading airports…' : `${airportCount} EU airports`}
</span>