diff --git a/README.md b/README.md
index c0430c2..7e1507f 100644
--- a/README.md
+++ b/README.md
@@ -4,17 +4,13 @@
Official Datatrans light box library for showing our payment page in React applications.
React is defined as a peer dependency and expected to be made available by your project. Other than that this library is completely dependency-free.
-
-
## How to install
```bash
+# using npm
npm i react-datatrans-light-box --save
-```
-or
-
-```bash
+# using yarn
yarn add react-datatrans-light-box
```
@@ -27,7 +23,6 @@ The LightBox HOC wraps your target component in a `div` tag and adds a LightBox
### Example Usage of LightBoxHoc
```javascript
-
const config = {
merchantId: '1100004624',
refno: '11000asdfasdf4624',
@@ -38,7 +33,6 @@ const config = {
}
class LightBoxHocApproachBase extends Component {
-
constructor(props) {
super(props)
@@ -50,13 +44,10 @@ class LightBoxHocApproachBase extends Component {
}
render() {
-
const {lightBox} = this.props
return
-
Test LightBoxHoc Apprach
-
props.lightBox:
{JSON.stringify(lightBox, null, 2)}
@@ -67,10 +58,8 @@ class LightBoxHocApproachBase extends Component {
-
}
-
}
LightBoxHocApproachBase.propTypes = {
@@ -78,7 +67,6 @@ LightBoxHocApproachBase.propTypes = {
}
const LightBoxHocApproach = LightBox.Hoc(LightBoxHocApproachBase)
-
```
### props.lightBox
@@ -99,16 +87,13 @@ LightBoxHoc.propType = PropTypes.shape({
})
```
-
## Example Usage of LightBox component
You can also use a more direct approach and display the LightBox component whenever or whereever you like.
```javascript
-
import React, {PropTypes, Component} from 'react'
import Lightbox from 'react-datatrans-light-box'
-
const config = {
merchantId: '1100004624',
refno: '11000asdfasdf4624',
@@ -119,7 +104,6 @@ const config = {
}
class LightBoxApproach extends Component {
-
constructor(props) {
super(props)
this.state = {
@@ -133,23 +117,21 @@ class LightBoxApproach extends Component {
}
render() {
-
return