Add leaflet-powered brewery map

This commit is contained in:
Aaron Po
2026-08-26 03:40:11 -04:00
parent 4ca35de7ef
commit d6306cbcba
11 changed files with 306 additions and 20 deletions

View File

@@ -0,0 +1,9 @@
import type { BreweryLocation } from '../breweries.server';
export const formatBreweryAddress = (location: BreweryLocation): string => {
const streetLine = location.addressLine2
? `${location.addressLine1}, ${location.addressLine2}`
: location.addressLine1;
return `${streetLine}, ${location.cityName}, ${location.stateProvinceCode} ${location.postalCode}, ${location.countryName}`;
};