mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
Add brewery discovery & detail pages with location-based search (#253)
This commit is contained in:
@@ -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}`;
|
||||
};
|
||||
Reference in New Issue
Block a user