@accountingbox/invoice-templates
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@accountingbox/invoice-templates", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Invoice templates", | ||
@@ -5,0 +5,0 @@ "author": "Thymo", |
@@ -1,11 +0,9 @@ | ||
# invoice-templates | ||
# Invoice-Templates | ||
> Invoice templates | ||
[![NPM](https://img.shields.io/npm/v/@accountingbox/invoice-templates.svg)](https://www.npmjs.com/package/@accountingbox/invoice-templates) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
[![NPM](https://img.shields.io/npm/v/invoice-templates.svg)](https://www.npmjs.com/package/invoice-templates) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
## Install | ||
```bash | ||
npm install --save invoice-templates | ||
npm install --save @accountingbox/invoice-templates | ||
``` | ||
@@ -18,8 +16,11 @@ | ||
import MyComponent from 'invoice-templates' | ||
import 'invoice-templates/dist/index.css' | ||
import {InvoiceRender} from '@accountingbox/invoice-templates' | ||
import '@accountingbox/invoice-templates/dist/index.css' | ||
const invoice = {} | ||
const invoiceSettings = {} | ||
class Example extends Component { | ||
render() { | ||
return <MyComponent /> | ||
return <InvoiceRender invoice={invoice} invoiceSettings={invoiceSettings} /> | ||
} | ||
@@ -31,2 +32,2 @@ } | ||
© [Thymo](https://github.com/Thymo) | ||
© [AccountingBox](https://github.com/accountingbox) |
1513404
32