@convious/rtp-calendar
v2.4.11
Published
Calendar which represents prices over months
Downloads
34
Keywords
Readme
@convious/rtp-calendar
Calendar which represents prices over months
Install
npm install --save @convious/rtp-calendar
Usage
import React, { Component } from 'react'
import { RtpCalendar } from 'rtp-calendar'
class Example extends Component {
render() {
const prices = [
{
date: '2021-01-02',
pricing: { availability: 'AVAILABLE' as Availability, price: '11.11', weight: 0 }
},
{
date: '2021-01-03',
pricing: { availability: 'AVAILABLE' as Availability, price: '22.22', weight: 2 }
},
{
date: '2021-01-04',
pricing: { availability: 'AVAILABLE' as Availability, price: '33.33', weight: 3 }
}
]
return (
<RtpCalendar
locale="en"
prices={prices}
/>
)
}
}
Package development with npm link
For simultaneous development with another repo you can use npm link:
# In calendar dir run
npm link
# In project dir run
npm link @convious/rtp-calendar
Publishing package
npm version x.x.x -m "Git comment" # Creates a version tag and a commit
npm login # Logs in to NPM
npm publish # Publishes new package version
License
MIT © Convious