@protacon/muster-booking-frontend
v1.26.0
Published
Online booking frontend
Downloads
20
Keywords
Readme
Muster booking frontend
Online booking frontend
Install
npm install @protacon/muster-booking-frontend
Usage
import BookingComponent from '@protacon/muster-booking-frontend'
import '@protacon/muster-booking-frontend/dist/styles.bundle.css'
...
render() {
return (
<BookingComponent
locale="sv"
timezone="Europe/Stockholm"
apiEndpoint="https://.../booking.api/v1"
chainId={2}
googleApiKey="..."
maxStations={5}
// Optional. Preselect reservation params
plateNumber="..."
product="..." // Inspection | PostInspection | ConditionInspection
stationId={...}
// Optional. Start component with search reservation form, optionaly pass default values
searchReservation={{
bookingNumber: '...',
lastName: '...',
}}
/>
)
}
To start component with existing reservation payment navigate to page with component with search:
?continuePaymentReservationUid={reservationUid}&stationId={stationId}
Development
npm start
open http://localhost:8080/