diff --git a/.babelrc b/.babelrc
index 723ea64..0337494 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,9 +1,25 @@
{
+ "env": {
+ "development": {
+ "compact": false
+ }
+ },
"presets": [
- ["env", {
- "modules": false
- }],
- "stage-0",
+ [
+ "env",
+ {
+ "modules": false
+ }
+ ],
+ "stage-2",
"react"
+ ],
+ "plugins": [
+ [
+ "transform-runtime",
+ {
+ "regenerator": true
+ }
+ ]
]
-}
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index 2aacb4c..9bd7fe1 100644
--- a/README.md
+++ b/README.md
@@ -15,12 +15,12 @@ npm install --save payfiat
```jsx
import React, { Component } from 'react'
-import MyComponent from 'payfiat'
+import {PayFiat} from 'payfiat'
class Example extends Component {
render () {
return (
-
+
)
}
}
diff --git a/example/package-lock.json b/example/package-lock.json
index 6623089..44a6fa0 100644
--- a/example/package-lock.json
+++ b/example/package-lock.json
@@ -2957,9 +2957,9 @@
}
},
"dotenv": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz",
- "integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0="
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
+ "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
"dotenv-expand": {
"version": "4.2.0",
@@ -22193,6 +22193,13 @@
"webpack-dev-server": "2.11.3",
"webpack-manifest-plugin": "1.3.2",
"whatwg-fetch": "2.0.3"
+ },
+ "dependencies": {
+ "dotenv": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz",
+ "integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0="
+ }
}
},
"read-pkg": {
diff --git a/example/package.json b/example/package.json
index e110bc3..a8a895d 100644
--- a/example/package.json
+++ b/example/package.json
@@ -5,11 +5,12 @@
"license": "MIT",
"private": true,
"dependencies": {
+ "dotenv": "^8.2.0",
+ "payfiat": "file:..",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
- "react-scripts": "^1.1.4",
- "payfiat": "file:.."
+ "react-scripts": "^1.1.4"
},
"scripts": {
"start": "react-scripts start",
diff --git a/example/public/index.html b/example/public/index.html
index 36461b3..ac0489c 100644
--- a/example/public/index.html
+++ b/example/public/index.html
@@ -1,20 +1,22 @@
-
-
-
-
-
+
+
+
+
+
+
- payfiat
-
+ payfiat
+
-
-
+
+
-
-
-
+
+
+
+