Skip to Content
Urban Cowboy
Components

Journey Extras Step

Add-on selection step with local totals and scheduling preferences.

PhotoExtrasStep presents merchandised add-ons for the selected room. It is fully controlled: the caller owns selection, preferences and the running total. The docs harness keeps all of that in local state and uses a single fixed-price fixture, with no Mews product lookup.

Former Storybook states

Selected and NoExtras are shown below; toggling an add-on updates the total immediately.

Props

PropValuesNotes
productsMerchandisedAddOn[]Deterministic fixture in docs
selectedProductIds / lockedProductIdsstring[] / Set<string>Controlled selection and locked items
preferences / onSavePreferencerecord / callbackPer-add-on scheduling choice
totalnumberCaller-computed total including add-ons
guestsCount, nights, checkIn, checkOutnumber / stringStay context shown in the header
imageBaseUrlstringOptional prefix for add-on artwork

Responsive behaviour

The add-on row becomes a single column on phones and expands at sm. The artwork fills its card without overflow, and the action bar stays within the step wrapper.

Usage

import { PhotoExtrasStep } from '@/journey/PhotoExtrasStep';

<PhotoExtrasStep {...extrasState} onToggle={toggle} onNext={continueToReview} />

View source