3.3.13 • Published 1 year ago

different-roads-booking-form v3.3.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

different-roads-booking-form

NPM version Build npm-typescriptLicense]github-license-url

You can clone it and step by step create your own NPM package and publish it.

Reusable form for different roads.

Installation:

npm install different-roads-booking-form --save-dev

or

yarn add -D different-roads-booking-form

Usage :

Add PassangerForm to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { PassangerForm, Summary, BookingFlight } from 'different-roads-booking-form'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
        <div>
            <PassangerForm
              setAnyError={setAnyError}
              room={room}
              roomIndex={key}
              key={'room-settting-' + key}
              updateTraveler={updateTravelerReservationsFields}
              reservationFields={reservationFields}
              travelers={state.travelers}
              submitExecute={submitExecute}
              setSubmitExecute={setSubmitExecute}
            />
            <Summary
              tour={tour}
              travelers={transformTravelers(node_travelerproduct)}
              node_deadline={orderNodeDeadline(node_deadline)}
              node_payment={node_payment}
            />
            <BookingFlight 
              flight={state.flight as Flight}
              period={state.flight?.period as Period}
            />
        </div>
    </React.StrictMode>,
)
3.3.13

1 year ago

3.3.11

1 year ago

3.3.12

1 year ago

3.3.10

1 year ago

3.3.9

1 year ago

3.3.8

1 year ago

3.3.7

1 year ago

3.3.6

1 year ago

3.3.5

1 year ago

3.3.4

1 year ago

3.3.3

1 year ago

3.3.1

1 year ago

3.3.2

1 year ago

3.2.2

2 years ago

3.3.0

2 years ago

3.2.1

2 years ago

3.1.7

2 years ago

3.1.6

2 years ago

3.1.9

2 years ago

3.1.8

2 years ago

3.1.5

2 years ago

3.1.4

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago