Skip to content

Commit 69f9a6e

Browse files
committed
Remove select box for state/county
1 parent 6aaddf6 commit 69f9a6e

9 files changed

Lines changed: 85 additions & 1660 deletions

File tree

src/Flow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { Coordinates } from './components/GoogleMap'
99
import type { PlaceSelection } from './components/PlacesSearch'
1010
import { loadGoogleMaps, adrAddressForPlaceId, formatCoordinates } from './lib/googleMaps'
1111
import { emptyApplication, type ApplicationData, type VenueAddress } from './types'
12-
import { capitalForCountry, canonicalSubdivision } from './data/reference'
12+
import { capitalForCountry } from './data/reference'
1313
import { VARIANTS, type Variant } from './variants'
1414

1515
interface Props {
@@ -57,7 +57,7 @@ export function Flow({ variant, onExit }: Props) {
5757
addressLine1: sel.address.addressLine1,
5858
addressLine2: sel.address.addressLine2,
5959
municipality: sel.address.municipality,
60-
administrativeArea: canonicalSubdivision(d.country, sel.address.administrativeArea),
60+
administrativeArea: sel.address.administrativeArea,
6161
postcode: sel.address.postcode,
6262
coordinates: formatCoordinates(sel.lat, sel.lng),
6363
},
@@ -84,7 +84,7 @@ export function Flow({ variant, onExit }: Props) {
8484
addressLine1: adr.addressLine1,
8585
addressLine2: adr.addressLine2,
8686
municipality: adr.municipality,
87-
administrativeArea: canonicalSubdivision(d.country, adr.administrativeArea),
87+
administrativeArea: adr.administrativeArea,
8888
postcode: adr.postcode,
8989
coordinates: formatCoordinates(c.lat, c.lng),
9090
},

src/Home.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ interface Props {
77
}
88

99
export function Home({ onSelect }: Props) {
10+
// Only option C is shown for now; the other variants are hidden.
11+
const visibleVariants = VARIANTS.filter((v) => v.id === 'confirm-button')
12+
1013
return (
1114
<div className="card">
1215
<div className="intro">
13-
<h1 className="title-lg">Venue address — prototype variants</h1>
16+
<h1 className="title-lg">Venue address — prototype</h1>
1417
<p className="body">
15-
Three implementations of the “Where is the club venue?” step. Each one starts the same
16-
registration flow; only the address step differs. Pick one to try it.
18+
A prototype of the “Where is the club venue?” step. Select it below to try it.
1719
</p>
1820
</div>
1921

@@ -24,13 +26,13 @@ export function Home({ onSelect }: Props) {
2426
Only a handful of countries are available (United Kingdom, India, South Africa, United
2527
States, Canada and Kenya).
2628
</li>
27-
<li>Country, subdivision and map data may be incomplete or inaccurate.</li>
29+
<li>Country and map data may be incomplete or inaccurate.</li>
2830
<li>None of the copy, labels or help text has been reviewed and may change.</li>
2931
</ul>
3032
</Alert>
3133

3234
<div className="variant-list">
33-
{VARIANTS.map((v) => (
35+
{visibleVariants.map((v) => (
3436
<div className="variant-card" key={v.id}>
3537
<div className="variant-card-text">
3638
<h2 className="title-sm">{v.title}</h2>

src/components/SubdivisionField.tsx

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)