mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-06 01:23:04 +00:00
B95 — reuse HOME_SEARCH_GROUP_LIST_CLASS for wizard hit list
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
This commit is contained in:
parent
7b3d3096cd
commit
67336c9d9d
1 changed files with 3 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ import {
|
||||||
WIZARD_MUNICIPALITY_STEP_TITLE,
|
WIZARD_MUNICIPALITY_STEP_TITLE,
|
||||||
wizardFlowTitleForSlug,
|
wizardFlowTitleForSlug,
|
||||||
} from '@/lib/campaignWizardCopy'
|
} from '@/lib/campaignWizardCopy'
|
||||||
|
import { HOME_SEARCH_GROUP_LIST_CLASS } from '@/lib/homeSearchUi'
|
||||||
import type { AccessibleMunicipality } from '@/lib/municipalityProximity'
|
import type { AccessibleMunicipality } from '@/lib/municipalityProximity'
|
||||||
import { HOME_SEARCH_QUERY_MAX_LENGTH } from '@/lib/schemas/homeSearch'
|
import { HOME_SEARCH_QUERY_MAX_LENGTH } from '@/lib/schemas/homeSearch'
|
||||||
import {
|
import {
|
||||||
|
|
@ -202,9 +203,9 @@ export const WizardMunicipalitySearchStep = ({
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
{results.status === 'success' && displayRows.length > 0 ? (
|
{results.status === 'success' && displayRows.length > 0 ? (
|
||||||
<ul className="m-0 flex list-none flex-col p-0">
|
<ul className={HOME_SEARCH_GROUP_LIST_CLASS}>
|
||||||
{displayRows.map(({ hit, continuityReason }) => (
|
{displayRows.map(({ hit, continuityReason }) => (
|
||||||
<li key={hit.slug} className="m-0 list-none p-0">
|
<li key={hit.slug}>
|
||||||
<HomeSearchHitRow
|
<HomeSearchHitRow
|
||||||
href={wizardActionHref(actionSlug, hit.slug)}
|
href={wizardActionHref(actionSlug, hit.slug)}
|
||||||
primary={hit.name}
|
primary={hit.name}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue