Skip to content

Commit

Permalink
working commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Patel committed Jan 5, 2020
1 parent 4762eee commit 931a1c2
Show file tree
Hide file tree
Showing 183 changed files with 34,082 additions and 112 deletions.
26 changes: 21 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -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
}
]
]
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<MyComponent />
<PayFiat oceanAmount={50} currency="EUR"/>
)
}
}
Expand Down
13 changes: 10 additions & 3 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 16 additions & 14 deletions example/public/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">

<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<script src="https://js.stripe.com/v3/"></script>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">

<title>payfiat</title>
</head>
<title>payfiat</title>
</head>

<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>

<div id="root"></div>
</body>
</html>
<div id="root"></div>
</body>

</html>
6 changes: 3 additions & 3 deletions example/src/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { Component } from 'react'

import ExampleComponent from 'payfiat'
import { PayFiat } from 'payfiat'

export default class App extends Component {
render () {
render() {
return (
<div>
<ExampleComponent text='Modern React component module' />
<PayFiat oceanAmount={105} currency="EUR" />
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion example/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
margin: 0;
margin: auto;
padding: 0;
font-family: sans-serif;
}
2 changes: 1 addition & 1 deletion example/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom'

import './index.css'
import App from './App'

console.log(process.env.REACT_APP_PAYFIAT_SERVER_URL)
ReactDOM.render(<App />, document.getElementById('root'))
Loading

0 comments on commit 931a1c2

Please sign in to comment.