Skip to content

gadventures/bookings-cart

Repository files navigation

bookings-cart

Widget to view G Adventures bookings that are in-progress, optioned and confirmed

NPM JavaScript Style Guide

Install

npm install --save bookings-cart

Usage

import React from 'react';
import ReactDOM from 'react-dom';

// eslint-disable-next-line
import polyfill from 'babel-polyfill'

import {createStore, applyMiddleware, compose, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import createSagaMiddleware from 'redux-saga';

import {Cart, cartReducer, cartSaga} from 'bookings-cart';


const sagaMiddleware = createSagaMiddleware()
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
    combineReducers({
        bookings: cartReducer
    }),
    composeEnhancers(applyMiddleware(sagaMiddleware)),
)

sagaMiddleware.run(cartSaga)

ReactDOM.render(
    <Provider store={store}>
        <Cart/>
    </Provider>,
    document.getElementById('root')
);

Preview:

bookings-cart-ux

License

MIT © gadventures

About

Widget to view G Adventures bookings that are in-progress, optioned and confirmed

Resources

Stars

Watchers

Forks

Packages

No packages published